Allow disabling USB connection by discarding the pop-up menu

This commit is contained in:
Raphael Coeffic
2021-05-24 16:23:06 +02:00
committed by Raphael Coeffic
parent 4fe4c1a385
commit 0bb9994ac5
3 changed files with 68 additions and 18 deletions
+1 -1
View File
@@ -2053,7 +2053,7 @@ uint32_t pwrCheck()
#if defined(SHUTDOWN_CONFIRMATION)
while (1)
#else
while (usbPlugged() ||
while ((usbPlugged() && getSelectedUsbMode() != USB_UNSELECTED_MODE) ||
(TELEMETRY_STREAMING() && !g_eeGeneral.disableRssiPoweroffAlarm))
#endif
{