mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-03 03:09:59 +00:00
'battery_gauge_fix' (#1731)
This commit is contained in:
parent
4723faa95f
commit
ab4b3a50ee
@ -131,7 +131,7 @@ class AnalogBatteryLevel : public HasBatteryLevel
|
|||||||
#endif
|
#endif
|
||||||
// DEBUG_MSG("battery gpio %d raw val=%u scaled=%u\n", BATTERY_PIN, raw, (uint32_t)(scaled));
|
// DEBUG_MSG("battery gpio %d raw val=%u scaled=%u\n", BATTERY_PIN, raw, (uint32_t)(scaled));
|
||||||
last_read_value = scaled;
|
last_read_value = scaled;
|
||||||
return scaled * 1000;
|
return scaled;
|
||||||
} else {
|
} else {
|
||||||
return last_read_value;
|
return last_read_value;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user