sforkowany z mirror/meshtastic-firmware
'battery_gauge_fix' (#1731)
rodzic
4723faa95f
commit
ab4b3a50ee
|
@ -131,7 +131,7 @@ class AnalogBatteryLevel : public HasBatteryLevel
|
|||
#endif
|
||||
// DEBUG_MSG("battery gpio %d raw val=%u scaled=%u\n", BATTERY_PIN, raw, (uint32_t)(scaled));
|
||||
last_read_value = scaled;
|
||||
return scaled * 1000;
|
||||
return scaled;
|
||||
} else {
|
||||
return last_read_value;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue