X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=firmware%2Fbattery.c;h=542d20e76e4325beb29d7366517e41bae5e32d2c;hb=ac48ba8ac7c4e1644eb37321894b26a3eef083e8;hp=192acf04e40502fd3097ed2425ee9c8288bc0d31;hpb=6737fabc05aa6e7975d4fd47ad0f4a2128124351;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);