summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)
status_draw();
}
+#if defined(HAVE_LCD_CHARCELLS)
+static bool record = false;
+static bool audio = false;
+static bool param = false;
+static bool usb = false;
+
+void status_set_record(bool b)
+{
+ record = b;
+}
+
+void status_set_audio(bool b)
+{
+ audio = b;
+}
+
+void status_set_param(bool b)
+{
+ param = b;
+}
+
+void status_set_usb(bool b)
+{
+ usb = b;
+}
+
+#endif /* HAVE_LCD_CHARCELLS */
+
void status_draw(void)
{
int battlevel = battery_level();
@@ -160,6 +188,11 @@ void status_draw(void)
lcd_icon(ICON_REPEAT, global_settings.repeat_mode != REPEAT_OFF);
lcd_icon(ICON_1, global_settings.repeat_mode == REPEAT_ONE);
+ lcd_icon(ICON_RECORD, record);
+ lcd_icon(ICON_AUDIO, audio);
+ lcd_icon(ICON_PARAM, param);
+ lcd_icon(ICON_USB, usb);
+
#endif
#ifdef HAVE_LCD_BITMAP
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);
#endif
void status_draw(void);
+#if defined(HAVE_LCD_CHARCELLS)
+void status_set_record(bool b);
+void status_set_audio(bool b);
+void status_set_param(bool b);
+void status_set_usb(bool b);
+#endif
+
#endif