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:
committed by
mrovi9000@gmail.com
parent
cab31cb726
commit
321ccc0794
@@ -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 &&
|
||||||
|
|||||||
Reference in New Issue
Block a user