diff --git a/src/battery.cpp b/src/battery.cpp index 1c4dc144..147e5d0b 100644 --- a/src/battery.cpp +++ b/src/battery.cpp @@ -48,7 +48,7 @@ uint16_t read_voltage(void) { #ifdef BATT_FACTOR voltage *= BATT_FACTOR; #endif - ESP_LOGI(TAG, "Raw: %d / Voltage: %dmV", adc_reading, voltage); + ESP_LOGD(TAG, "Raw: %d / Voltage: %dmV", adc_reading, voltage); return voltage; } #endif // HAS_BATTERY_PROBE \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp index 4621efe5..b4f82d22 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -185,10 +185,6 @@ void sendPayload() { SendCycleTimerIRQ = 0; portEXIT_CRITICAL(&timerMux); -#ifdef HAS_BATTERY_PROBE - batt_volt = read_voltage(); -#endif - // append counter data to payload payload.reset(); payload.addCount(macs_wifi, cfg.blescan ? macs_ble : 0); @@ -436,6 +432,10 @@ void loop() { readButton(); #endif +#ifdef HAS_BATTERY_PROBE + batt_volt = read_voltage(); +#endif + #ifdef HAS_DISPLAY updateDisplay(); #endif