Skip to content

Commit 70aa82f

Browse files
committed
correct bug in usb detection: boolean are reversed
Signed-off-by: Vincent-FK <[email protected]>
1 parent bf24872 commit 70aa82f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RetroFE/Source/Menu/MenuMode.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,8 @@ void MenuMode::init_menu_system_values(){
414414
}
415415

416416
/// ------- Get USB Value -------
417-
usb_data_connected = !Utils::executeRawPath(SHELL_CMD_USB_DATA_CONNECTED);
418-
usb_sharing = !Utils::executeRawPath(SHELL_CMD_USB_CHECK_IS_SHARING);
417+
usb_data_connected = Utils::executeRawPath(SHELL_CMD_USB_DATA_CONNECTED);
418+
usb_sharing = Utils::executeRawPath(SHELL_CMD_USB_CHECK_IS_SHARING);
419419

420420
if(usb_sharing && !usb_data_connected){
421421
MENU_ERROR_PRINTF("WARNING usb_sharing && !usb_data_connected\n");

0 commit comments

Comments
 (0)