From 0bce85e1e15b949fd8360bbf3ea66a13d486934d Mon Sep 17 00:00:00 2001 From: malle Date: Mon, 12 Aug 2002 14:16:50 +0000 Subject: [PATCH] corrected battery empty condition git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1686 a1c6a512-1295-4272-9138-f99709370657 --- apps/status.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/status.c b/apps/status.c index f3d3a1a86..5bbe14710 100644 --- a/apps/status.c +++ b/apps/status.c @@ -52,16 +52,16 @@ void status_set_playmode(enum playmode mode) #ifdef HAVE_LCD_BITMAP bool statusbar(bool state) { - bool laststate=statusbar_enabled; + bool laststate = statusbar_enabled; - statusbar_enabled=state; + statusbar_enabled = state; return(laststate); } void statusbar_toggle(void) { - statusbar_enabled=!statusbar_enabled; + statusbar_enabled = !statusbar_enabled; } #endif @@ -144,7 +144,7 @@ void status_draw(void) } else { plug_state=false; - if(battlevel > battery_level_safe()) + if(battery_level_safe()) battery_state = true; else if(TIME_AFTER(current_tick, switch_tick)) { -- 2.11.4.GIT