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:
o9000 2015-04-09 09:24:25 +00:00 committed by mrovi9000@gmail.com
parent cab31cb726
commit 321ccc0794

View file

@ -80,8 +80,7 @@ void update_battery_tick(void* arg)
// Reconfigure
init_battery();
// Try again
if (update_battery() != 0)
return;
update_battery();
}
if (old_found == battery_found &&
old_percentage == battery_state.percentage &&