]> www.fi.muni.cz Git - bike-lights.git/commitdiff
battery.c: don't report battery critical for now
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Mon, 3 Jun 2013 20:05:09 +0000 (22:05 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Mon, 3 Jun 2013 20:05:09 +0000 (22:05 +0200)
firmware/battery.c

index 192acf04e40502fd3097ed2425ee9c8288bc0d31..542d20e76e4325beb29d7366517e41bae5e32d2c 100644 (file)
@@ -112,8 +112,10 @@ unsigned char battery_gauge()
                rv = 10;
        }
 
-       if (rv == 1)
+#if 0
+       if (battery_adcval && rv == 1)
                battery_critical = 1;
+#endif
 
 #if 0
        log_byte(0xbb);