From 321ccc07944901895ad4964324b915294280a797 Mon Sep 17 00:00:00 2001 From: o9000 Date: Thu, 9 Apr 2015 09:24:25 +0000 Subject: [PATCH] Fix no handling of battery removal git-svn-id: http://tint2.googlecode.com/svn/trunk@747 121b4492-b84c-0410-8b4c-0d4edfb3f3cc --- src/battery/battery.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/battery/battery.c b/src/battery/battery.c index ed21d79..0652505 100644 --- a/src/battery/battery.c +++ b/src/battery/battery.c @@ -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 &&