Allow disabling USB connection by discarding the pop-up menu
This commit is contained in:
committed by
Raphael Coeffic
parent
4fe4c1a385
commit
0bb9994ac5
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user