X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=firmware%2Fbattery.c;h=542d20e76e4325beb29d7366517e41bae5e32d2c;hb=15758319e9901ada7e67a7c0c3288e53d803f059;hp=192acf04e40502fd3097ed2425ee9c8288bc0d31;hpb=60d17ce8b779c966e6285f1fb9f3de3118752092;p=bike-lights.git 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);