Fix battery display bug, and the flash time (#3232)

* battfix

* por again, but nicer
This commit is contained in:
Totoo
2026-06-22 16:20:49 +02:00
committed by GitHub
parent c16bac24c7
commit f6d6e3be4c
5 changed files with 35 additions and 12 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ void BatteryManagement::getBatteryInfo(uint8_t& valid_mask, uint8_t& percent, ui
if (dev) {
voltage = ((i2cdev::I2cDev_ADS1110*)dev)->readVoltage();
percent = calc_percent_voltage(voltage);
valid_mask = 1;
valid_mask = BATT_VALID_VOLTAGE | BATT_VALID_PERCENT;
return;
}