analog input use calibrated mV

This commit is contained in:
MichaelDvP
2021-07-23 12:09:41 +02:00
parent 6d94335079
commit 8930c52ada

View File

@@ -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