bugfix battery voltage display
This commit is contained in:
parent
d9c6153559
commit
6bf4a287bf
@ -57,7 +57,7 @@ void doHousekeeping() {
|
||||
// read battery voltage into global variable
|
||||
#if (defined BAT_MEASURE_ADC || defined HAS_PMU)
|
||||
batt_voltage = read_voltage();
|
||||
if (batt_voltage = 0xffff)
|
||||
if (batt_voltage == 0xffff)
|
||||
ESP_LOGI(TAG, "Battery: external power");
|
||||
else
|
||||
ESP_LOGI(TAG, "Battery: %dmV", batt_voltage);
|
||||
|
Loading…
Reference in New Issue
Block a user