Better implementation of shutdown confirmation (#7157)
This fixes #7129
This commit is contained in:
@@ -2110,7 +2110,13 @@ uint32_t pwrCheck()
|
|||||||
lcdClear();
|
lcdClear();
|
||||||
|
|
||||||
POPUP_CONFIRMATION(STR_MODEL_SHUTDOWN, nullptr);
|
POPUP_CONFIRMATION(STR_MODEL_SHUTDOWN, nullptr);
|
||||||
|
#if defined(SHUTDOWN_CONFIRMATION)
|
||||||
|
if (TELEMETRY_STREAMING() && !g_eeGeneral.disableRssiPoweroffAlarm) {
|
||||||
|
SET_WARNING_INFO(STR_MODEL_STILL_POWERED, sizeof(TR_MODEL_STILL_POWERED), 0);
|
||||||
|
}
|
||||||
|
#else
|
||||||
SET_WARNING_INFO(STR_MODEL_STILL_POWERED, sizeof(TR_MODEL_STILL_POWERED), 0);
|
SET_WARNING_INFO(STR_MODEL_STILL_POWERED, sizeof(TR_MODEL_STILL_POWERED), 0);
|
||||||
|
#endif
|
||||||
event_t evt = getEvent(false);
|
event_t evt = getEvent(false);
|
||||||
DISPLAY_WARNING(evt);
|
DISPLAY_WARNING(evt);
|
||||||
lcdRefresh();
|
lcdRefresh();
|
||||||
|
|||||||
Reference in New Issue
Block a user