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;
|
||||
}
|
||||
|
||||
@@ -4,4 +4,5 @@
|
||||
|
||||
void Adc_PortInit();
|
||||
float Adc_GetBatteryVoltage();
|
||||
uint8_t Adc_GetBatteryLevel();
|
||||
uint8_t Adc_GetBatteryLevel();
|
||||
bool Adc_IsCharging();
|
||||
Reference in New Issue
Block a user