From 70aa82fc5149d0a1d3bb5771c4a6c369de8b7ce8 Mon Sep 17 00:00:00 2001 From: Vincent-FK Date: Tue, 29 Sep 2020 23:57:54 +0200 Subject: [PATCH] correct bug in usb detection: boolean are reversed Signed-off-by: Vincent-FK --- RetroFE/Source/Menu/MenuMode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RetroFE/Source/Menu/MenuMode.cpp b/RetroFE/Source/Menu/MenuMode.cpp index 150c40b..1ca3154 100755 --- a/RetroFE/Source/Menu/MenuMode.cpp +++ b/RetroFE/Source/Menu/MenuMode.cpp @@ -414,8 +414,8 @@ void MenuMode::init_menu_system_values(){ } /// ------- Get USB Value ------- - usb_data_connected = !Utils::executeRawPath(SHELL_CMD_USB_DATA_CONNECTED); - usb_sharing = !Utils::executeRawPath(SHELL_CMD_USB_CHECK_IS_SHARING); + usb_data_connected = Utils::executeRawPath(SHELL_CMD_USB_DATA_CONNECTED); + usb_sharing = Utils::executeRawPath(SHELL_CMD_USB_CHECK_IS_SHARING); if(usb_sharing && !usb_data_connected){ MENU_ERROR_PRINTF("WARNING usb_sharing && !usb_data_connected\n");