From: Maximilian Friedersdorff Date: Tue, 21 Jun 2022 07:46:31 +0000 (+0100) Subject: Flash when battery voltage is low X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=179359809dd8990f02cc9d7b5efd27b7f29490b2;p=max%2Fbattery_tester.git Flash when battery voltage is low --- diff --git a/battery_tester.ino b/battery_tester.ino index f948ec2..bed857f 100644 --- a/battery_tester.ino +++ b/battery_tester.ino @@ -119,6 +119,10 @@ void loop() { wattseconds += watts_in_period; mamphours = ampseconds/3.6; mwatthours = wattseconds/3.6; + + if (battery_voltage < 0.8) { + delay(200); + } } showNumber(mamphours); }