mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-08-31 03:49:04 +00:00
Fix battery display bug, and the flash time (#3232)
* battfix * por again, but nicer
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user