From 6138f29da622916bd5ea0576caf487cce2e56cfa Mon Sep 17 00:00:00 2001 From: philmoz Date: Sun, 9 Apr 2023 20:56:28 +1000 Subject: [PATCH] feat(color): Show 'Press any key to skip' message on alerts that have no message (#3433) * Show the 'Press any key to skip' message on alerts that currently have no message. * Show action button on storage format warning also --------- Co-authored-by: Peter Feerick --- radio/src/opentx.h | 2 +- radio/src/storage/sdcard_common.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/radio/src/opentx.h b/radio/src/opentx.h index 2859be7ad..1a357ba3d 100644 --- a/radio/src/opentx.h +++ b/radio/src/opentx.h @@ -438,7 +438,7 @@ inline void RAISE_ALERT(const char *title, const char *msg, const char *info, } inline void ALERT(const char *title, const char *msg, uint8_t sound) { - raiseAlert(title, msg, "", sound); + raiseAlert(title, msg, STR_PRESS_ANY_KEY_TO_SKIP, sound); } #else // !COLORLCD && GUI diff --git a/radio/src/storage/sdcard_common.cpp b/radio/src/storage/sdcard_common.cpp index c44a36fce..6586d6d8a 100644 --- a/radio/src/storage/sdcard_common.cpp +++ b/radio/src/storage/sdcard_common.cpp @@ -53,7 +53,7 @@ void storageEraseAll(bool warn) ALERT(STR_STORAGE_WARNING, STR_BAD_RADIO_DATA, AU_BAD_RADIODATA); } - RAISE_ALERT(STR_STORAGE_WARNING, STR_STORAGE_FORMAT, NULL, AU_NONE); + RAISE_ALERT(STR_STORAGE_WARNING, STR_STORAGE_FORMAT, STR_PRESS_ANY_KEY_TO_SKIP, AU_NONE); storageFormat(); storageDirty(EE_GENERAL);