Fix no handling of battery removal
git-svn-id: http://tint2.googlecode.com/svn/trunk@747 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
parent
cab31cb726
commit
321ccc0794
1 changed files with 1 additions and 2 deletions
|
@ -80,8 +80,7 @@ void update_battery_tick(void* arg)
|
||||||
// Reconfigure
|
// Reconfigure
|
||||||
init_battery();
|
init_battery();
|
||||||
// Try again
|
// Try again
|
||||||
if (update_battery() != 0)
|
update_battery();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
if (old_found == battery_found &&
|
if (old_found == battery_found &&
|
||||||
old_percentage == battery_state.percentage &&
|
old_percentage == battery_state.percentage &&
|
||||||
|
|
Loading…
Reference in a new issue