correct bug in usb detection: boolean are reversed

Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
This commit is contained in:
Vincent-FK 2020-09-29 23:57:54 +02:00
parent bf24872be3
commit 70aa82fc51

View File

@ -414,8 +414,8 @@ void MenuMode::init_menu_system_values(){
} }
/// ------- Get USB Value ------- /// ------- Get USB Value -------
usb_data_connected = !Utils::executeRawPath(SHELL_CMD_USB_DATA_CONNECTED); usb_data_connected = Utils::executeRawPath(SHELL_CMD_USB_DATA_CONNECTED);
usb_sharing = !Utils::executeRawPath(SHELL_CMD_USB_CHECK_IS_SHARING); usb_sharing = Utils::executeRawPath(SHELL_CMD_USB_CHECK_IS_SHARING);
if(usb_sharing && !usb_data_connected){ if(usb_sharing && !usb_data_connected){
MENU_ERROR_PRINTF("WARNING usb_sharing && !usb_data_connected\n"); MENU_ERROR_PRINTF("WARNING usb_sharing && !usb_data_connected\n");