summaryrefslogtreecommitdiff
path: root/apps/status.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/status.c')
-rw-r--r--apps/status.c14
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 @@
36static enum playmode current_mode = STATUS_STOP; 36static enum playmode current_mode = STATUS_STOP;
37 37
38#ifdef HAVE_LCD_BITMAP 38#ifdef HAVE_LCD_BITMAP
39bool statusbar_enabled = true;
40long switch_tick; 39long switch_tick;
41bool plug_state; 40bool plug_state;
42bool battery_state; 41bool 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
58bool statusbar(bool state)
59{
60 bool laststate = statusbar_enabled;
61
62 statusbar_enabled = state;
63
64 return(laststate);
65}
66#endif
67
68void status_draw(void) 56void 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()) {