'battery_gauge_fix' (#1731)

This commit is contained in:
Neil Hao 2022-09-29 04:53:26 +08:00 committed by GitHub
parent 4723faa95f
commit ab4b3a50ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}