fix(color): audio does not play for switch and throttle warnings (#6934)

This commit is contained in:
philmoz
2026-01-03 12:23:14 +10:00
committed by GitHub
parent 48c41dd757
commit e43b776529
2 changed files with 0 additions and 14 deletions
@@ -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);
}
@@ -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;
};