From: Jan "Yenya" Kasprzak Date: Mon, 3 Jun 2013 20:05:09 +0000 (+0200) Subject: battery.c: don't report battery critical for now X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=ac48ba8ac7c4e1644eb37321894b26a3eef083e8;p=bike-lights.git battery.c: don't report battery critical for now --- diff --git a/firmware/battery.c b/firmware/battery.c index 192acf0..542d20e 100644 --- a/firmware/battery.c +++ b/firmware/battery.c @@ -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);