X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=bike-lights.git;a=blobdiff_plain;f=firmware%2Fbattery.c;h=4763f0563334f99423d99a6e2f9893cabe034a27;hp=542d20e76e4325beb29d7366517e41bae5e32d2c;hb=220d48069967aaae91c303f84b98f2bb36a51425;hpb=24169faebe2fc7da98023c44a81db9f1894531db diff --git a/firmware/battery.c b/firmware/battery.c index 542d20e..4763f05 100644 --- a/firmware/battery.c +++ b/firmware/battery.c @@ -114,7 +114,9 @@ unsigned char battery_gauge() #if 0 if (battery_adcval && rv == 1) - battery_critical = 1; + err_flags.err_battery = 1; + else + err_flags.err_battery = 0; #endif #if 0