We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d05f503 commit b7b91d4Copy full SHA for b7b91d4
RetroFE/Source/Menu/MenuMode.cpp
@@ -417,11 +417,16 @@ void MenuMode::init_menu_system_values(){
417
usb_data_connected = Utils::executeRawPath(SHELL_CMD_USB_DATA_CONNECTED);
418
usb_sharing = Utils::executeRawPath(SHELL_CMD_USB_CHECK_IS_SHARING);
419
420
- if(usb_sharing && !usb_data_connected){
421
- MENU_ERROR_PRINTF("WARNING usb_sharing && !usb_data_connected\n");
+ /** Sanity check if usb not connected */
+ if(!usb_data_connected){
422
usb_sharing = 0;
423
+
424
+ if(idx_menus[menuItem] == MENU_TYPE_USB){
425
+ menuItem = 0;
426
+ }
427
}
428
429
+ /** Sanity check if currently in USB sharing (should not happen) */
430
if(usb_sharing){
431
432
/// Force USB menu to launch
0 commit comments