changed isBatteryLow function to check voltage

instead of percent
This commit is contained in:
2023-05-25 19:57:00 +02:00
parent b9be10e063
commit 466ee39acc
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -83,11 +83,11 @@ class Battery {
* absurd low. This is for the case that the uController is powered
* by usb and no battery is connected.
*
* @param percent the limit the battery have to
* @param voltage the limit the battery have to
* @return true if the battery is low
* @return false if the battery is high
*/
bool isBatteryLow(uint8_t percent);
bool isBatteryLow(double voltage);
private:
double calculateInputVoltage();