From e43b776529c29303f0eadecbba0c96044a1de610 Mon Sep 17 00:00:00 2001 From: philmoz Date: Sat, 3 Jan 2026 13:23:14 +1100 Subject: [PATCH] fix(color): audio does not play for switch and throttle warnings (#6934) --- radio/src/gui/colorlcd/controls/switch_warn_dialog.cpp | 10 ---------- radio/src/gui/colorlcd/controls/switch_warn_dialog.h | 4 ---- 2 files changed, 14 deletions(-) diff --git a/radio/src/gui/colorlcd/controls/switch_warn_dialog.cpp b/radio/src/gui/colorlcd/controls/switch_warn_dialog.cpp index b3d9738f1..8ac372ee2 100644 --- a/radio/src/gui/colorlcd/controls/switch_warn_dialog.cpp +++ b/radio/src/gui/colorlcd/controls/switch_warn_dialog.cpp @@ -30,11 +30,6 @@ SwitchWarnDialog::SwitchWarnDialog() : last_bad_switches = 0xff; last_bad_pots = 0x0; setCloseCondition(std::bind(&SwitchWarnDialog::warningInactive, this)); -} - -void SwitchWarnDialog::delayedInit() -{ - FullScreenDialog::delayedInit(); lv_label_set_long_mode(messageLabel->getLvObj(), LV_LABEL_LONG_WRAP); AUDIO_ERROR_MESSAGE(AU_SWITCH_ALERT); } @@ -100,11 +95,6 @@ ThrottleWarnDialog::ThrottleWarnDialog(const char* msg) : STR_PRESS_ANY_KEY_TO_SKIP) { setCloseCondition(std::bind(&ThrottleWarnDialog::warningInactive, this)); -} - -void ThrottleWarnDialog::delayedInit() -{ - FullScreenDialog::delayedInit(); lv_label_set_long_mode(messageLabel->getLvObj(), LV_LABEL_LONG_WRAP); AUDIO_ERROR_MESSAGE(AU_THROTTLE_ALERT); } diff --git a/radio/src/gui/colorlcd/controls/switch_warn_dialog.h b/radio/src/gui/colorlcd/controls/switch_warn_dialog.h index 2d862fd78..4bb7c452e 100644 --- a/radio/src/gui/colorlcd/controls/switch_warn_dialog.h +++ b/radio/src/gui/colorlcd/controls/switch_warn_dialog.h @@ -40,8 +40,6 @@ class SwitchWarnDialog : public FullScreenDialog bool warningInactive(); - void delayedInit() override; - void checkEvents() override; }; @@ -56,6 +54,4 @@ class ThrottleWarnDialog : public FullScreenDialog protected: bool warningInactive(); - - void delayedInit() override; };