simple_display: add possibility to show text when changing mode

Origin commit data
------------------
Commit: 42e172a8b3
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-11-13 (Mon, 13 Nov 2017)

Origin message was:
------------------
- simple_display: add possibility to show text when changing mode
This commit is contained in:
vanhofen
2017-11-13 10:10:45 +01:00
parent 4455c486dd
commit 2c431f18d7

View File

@@ -470,8 +470,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; mode = m;
setlcdparameter(); setlcdparameter();