summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/status.c33
-rw-r--r--apps/status.h7
2 files changed, 40 insertions, 0 deletions
diff --git a/apps/status.c b/apps/status.c
index 0270d75a13..31d2cbe2cf 100644
--- a/apps/status.c
+++ b/apps/status.c
@@ -53,6 +53,34 @@ void status_set_playmode(enum playmode mode)
53 status_draw(); 53 status_draw();
54} 54}
55 55
56#if defined(HAVE_LCD_CHARCELLS)
57static bool record = false;
58static bool audio = false;
59static bool param = false;
60static bool usb = false;
61
62void status_set_record(bool b)
63{
64 record = b;
65}
66
67void status_set_audio(bool b)
68{
69 audio = b;
70}
71
72void status_set_param(bool b)
73{
74 param = b;
75}
76
77void status_set_usb(bool b)
78{
79 usb = b;
80}
81
82#endif /* HAVE_LCD_CHARCELLS */
83
56void status_draw(void) 84void status_draw(void)
57{ 85{
58 int battlevel = battery_level(); 86 int battlevel = battery_level();
@@ -160,6 +188,11 @@ void status_draw(void)
160 lcd_icon(ICON_REPEAT, global_settings.repeat_mode != REPEAT_OFF); 188 lcd_icon(ICON_REPEAT, global_settings.repeat_mode != REPEAT_OFF);
161 lcd_icon(ICON_1, global_settings.repeat_mode == REPEAT_ONE); 189 lcd_icon(ICON_1, global_settings.repeat_mode == REPEAT_ONE);
162 190
191 lcd_icon(ICON_RECORD, record);
192 lcd_icon(ICON_AUDIO, audio);
193 lcd_icon(ICON_PARAM, param);
194 lcd_icon(ICON_USB, usb);
195
163#endif 196#endif
164#ifdef HAVE_LCD_BITMAP 197#ifdef HAVE_LCD_BITMAP
165 if (global_settings.statusbar) { 198 if (global_settings.statusbar) {
diff --git a/apps/status.h b/apps/status.h
index d908face85..74118f303b 100644
--- a/apps/status.h
+++ b/apps/status.h
@@ -38,4 +38,11 @@ bool statusbar(bool state);
38#endif 38#endif
39void status_draw(void); 39void status_draw(void);
40 40
41#if defined(HAVE_LCD_CHARCELLS)
42void status_set_record(bool b);
43void status_set_audio(bool b);
44void status_set_param(bool b);
45void status_set_usb(bool b);
46#endif
47
41#endif 48#endif