Better implementation of shutdown confirmation (#7157)

This fixes #7129
This commit is contained in:
3djc
2019-12-06 16:37:15 +01:00
committed by Bertrand Songis
parent 761ea5952b
commit 7a8e0dcccd
+6
View File
@@ -2110,7 +2110,13 @@ uint32_t pwrCheck()
lcdClear();
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);
#endif
event_t evt = getEvent(false);
DISPLAY_WARNING(evt);
lcdRefresh();