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 192acf0..542d20e 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);