From 22e310ad801135a4ca5765c68e7064d9de1351a5 Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Sun, 4 Sep 2022 15:24:27 +0200 Subject: [PATCH] Removed unused variable 'voltage' Removed unused variable 'voltage' in readRaw() to avoid a compiler warning (which was treated as an error by arduino-cli used for integration testing) --- ESP32AnalogRead.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ESP32AnalogRead.cpp b/ESP32AnalogRead.cpp index a7e89db..c66715f 100644 --- a/ESP32AnalogRead.cpp +++ b/ESP32AnalogRead.cpp @@ -573,7 +573,6 @@ uint16_t ESP32AnalogRead::readRaw() #endif int32_t raw = 0; - uint32_t voltage = 0; // Read ADC and obtain result in mV if (unit == ADC_UNIT_1) { @@ -659,4 +658,4 @@ uint16_t ESP32AnalogRead::readRaw() } return raw; #endif -} \ No newline at end of file +}