mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-12 09:48:51 +01:00
correct bug in usb detection: boolean are reversed
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
This commit is contained in:
parent
bf24872be3
commit
70aa82fc51
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user