From 8930c52adac894ee62d51f9375509ca2ceec5973 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Fri, 23 Jul 2021 12:09:41 +0200 Subject: [PATCH] analog input use calibrated mV --- src/system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system.cpp b/src/system.cpp index e20124b18..7e0f789e1 100644 --- a/src/system.cpp +++ b/src/system.cpp @@ -511,7 +511,7 @@ void System::measure_analog() { if (!measure_last_ || (uint32_t)(uuid::get_uptime() - measure_last_) >= SYSTEM_MEASURE_ANALOG_INTERVAL) { measure_last_ = uuid::get_uptime(); #if defined(ESP32) - uint16_t a = analogRead(36); + uint16_t a = analogReadMilliVolts(36); #else uint16_t a = 0; // standalone #endif