diff options
Diffstat (limited to 'apps/status.c')
-rw-r--r-- | apps/status.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/apps/status.c b/apps/status.c index 47d01e30dd..fe4762e3ea 100644 --- a/apps/status.c +++ b/apps/status.c | |||
@@ -36,7 +36,6 @@ | |||
36 | static enum playmode current_mode = STATUS_STOP; | 36 | static enum playmode current_mode = STATUS_STOP; |
37 | 37 | ||
38 | #ifdef HAVE_LCD_BITMAP | 38 | #ifdef HAVE_LCD_BITMAP |
39 | bool statusbar_enabled = true; | ||
40 | long switch_tick; | 39 | long switch_tick; |
41 | bool plug_state; | 40 | bool plug_state; |
42 | bool battery_state; | 41 | bool battery_state; |
@@ -54,17 +53,6 @@ void status_set_playmode(enum playmode mode) | |||
54 | status_draw(); | 53 | status_draw(); |
55 | } | 54 | } |
56 | 55 | ||
57 | #ifdef HAVE_LCD_BITMAP | ||
58 | bool statusbar(bool state) | ||
59 | { | ||
60 | bool laststate = statusbar_enabled; | ||
61 | |||
62 | statusbar_enabled = state; | ||
63 | |||
64 | return(laststate); | ||
65 | } | ||
66 | #endif | ||
67 | |||
68 | void status_draw(void) | 56 | void status_draw(void) |
69 | { | 57 | { |
70 | int battlevel = battery_level(); | 58 | int battlevel = battery_level(); |
@@ -133,7 +121,7 @@ void status_draw(void) | |||
133 | } | 121 | } |
134 | #endif | 122 | #endif |
135 | #ifdef HAVE_LCD_BITMAP | 123 | #ifdef HAVE_LCD_BITMAP |
136 | if(global_settings.statusbar && statusbar_enabled) { | 124 | if (global_settings.statusbar) { |
137 | statusbar_wipe(); | 125 | statusbar_wipe(); |
138 | #ifdef HAVE_CHARGE_CTRL | 126 | #ifdef HAVE_CHARGE_CTRL |
139 | if(charger_inserted()) { | 127 | if(charger_inserted()) { |