- battery calc now more efficent

- new battery values now every 0.5s
This commit is contained in:
2023-09-04 15:52:34 +02:00
parent befbd898cc
commit 1d56a2a36d
4 changed files with 20 additions and 8 deletions
+1
View File
@@ -154,6 +154,7 @@ void loop() {
lcdWrapper->loop();
mainBattery->loop();
// new Value ervery 0.5s
if (mainBattery->isNewValue()) {
static uint8_t batteryLowCounter = 0;
if (mainBattery->isBatteryLow(10))