cosmetic: battery related stuff
This commit is contained in:
@@ -48,3 +48,7 @@ uint8_t Adc_GetBatteryLevel() {
|
||||
//ESP_LOGW("Battery","Voltage: %.3f V, Level: %.1f %%",vol,level);
|
||||
return (uint8_t)level;
|
||||
}
|
||||
|
||||
bool Adc_IsCharging() {
|
||||
return Adc_GetBatteryVoltage() > 4.10f;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user