diff --git a/firmware/usb.c b/firmware/usb.c index 4e13295509..4c122e8eea 100644 --- a/firmware/usb.c +++ b/firmware/usb.c @@ -478,7 +478,7 @@ static void NORETURN_ATTR usb_thread(void) usb_stack_enable(true); #ifndef BOOTLOADER #ifndef HAVE_USB_POWER - int usb_mode = USBMODE_DEFAULT; + int usb_mode = -1; #endif send_event(SYS_EVENT_USB_INSERTED, &usb_mode); #endif diff --git a/uisimulator/common/sim_tasks.c b/uisimulator/common/sim_tasks.c index feb88e2c58..8c1f193080 100644 --- a/uisimulator/common/sim_tasks.c +++ b/uisimulator/common/sim_tasks.c @@ -145,7 +145,7 @@ void sim_trigger_screendump(void) static bool is_usb_inserted; void sim_trigger_usb(bool inserted) { - int usbmode = USBMODE_DEFAULT; + int usbmode = -1; if (inserted) { send_event(SYS_EVENT_USB_INSERTED, &usbmode);