From 833aed00fc0c37f1ada7eb7a59bc564177b3968f Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Mon, 13 Nov 2017 10:10:45 +0100 Subject: [PATCH] - simple_display: add possibility to show text when changing mode Signed-off-by: Thilo Graf --- src/driver/simple_display.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/driver/simple_display.cpp b/src/driver/simple_display.cpp index a2f07be78..255936ba8 100644 --- a/src/driver/simple_display.cpp +++ b/src/driver/simple_display.cpp @@ -465,8 +465,11 @@ void CLCD::showAudioProgress(const char, bool) { } -void CLCD::setMode(const MODES m, const char * const) +void CLCD::setMode(const MODES m, const char * const title) { + if (strlen(title)) + ShowText(title); + mode = m; switch (m) {