diff options
-rw-r--r-- | firmware/usb.c | 2 | ||||
-rw-r--r-- | uisimulator/common/sim_tasks.c | 2 |
2 files changed, 2 insertions, 2 deletions
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) | |||
478 | usb_stack_enable(true); | 478 | usb_stack_enable(true); |
479 | #ifndef BOOTLOADER | 479 | #ifndef BOOTLOADER |
480 | #ifndef HAVE_USB_POWER | 480 | #ifndef HAVE_USB_POWER |
481 | int usb_mode = USBMODE_DEFAULT; | 481 | int usb_mode = -1; |
482 | #endif | 482 | #endif |
483 | send_event(SYS_EVENT_USB_INSERTED, &usb_mode); | 483 | send_event(SYS_EVENT_USB_INSERTED, &usb_mode); |
484 | #endif | 484 | #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) | |||
145 | static bool is_usb_inserted; | 145 | static bool is_usb_inserted; |
146 | void sim_trigger_usb(bool inserted) | 146 | void sim_trigger_usb(bool inserted) |
147 | { | 147 | { |
148 | int usbmode = USBMODE_DEFAULT; | 148 | int usbmode = -1; |
149 | if (inserted) | 149 | if (inserted) |
150 | { | 150 | { |
151 | send_event(SYS_EVENT_USB_INSERTED, &usbmode); | 151 | send_event(SYS_EVENT_USB_INSERTED, &usbmode); |