Do not spin when battery is unplugged
This commit is contained in:
parent
25dd623618
commit
41e49ef4e6
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ void init_battery()
|
||||||
|
|
||||||
battery_found = battery_os_init();
|
battery_found = battery_os_init();
|
||||||
|
|
||||||
change_timer(&battery_timer, true, 10, 30000, update_battery_tick, 0);
|
change_timer(&battery_timer, true, battery_found ? 10 : 30000, 30000, update_battery_tick, 0);
|
||||||
|
|
||||||
update_battery();
|
update_battery();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue