diff options
author | William Wilgus <wilgus.william@gmail.com> | 2021-10-31 21:36:21 -0400 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2021-10-31 21:36:21 -0400 |
commit | 684565b8f34d0f2bb9012b5a20499ed64db38812 (patch) | |
tree | 7cb1f90974d8edda36e82b85a6603c59b5f602a7 /uisimulator/common/sim_tasks.c | |
parent | d72a0ed65d9cd8acc61b4ead0cc99057877a4c9f (diff) | |
download | rockbox-684565b8f34d0f2bb9012b5a20499ed64db38812.tar.gz rockbox-684565b8f34d0f2bb9012b5a20499ed64db38812.zip |
USB fix red for device without HAVE_USB_POWER again.
Change-Id: I3122d532cbb8d5b5cb9040f08707c1514bc1b18e
Diffstat (limited to 'uisimulator/common/sim_tasks.c')
-rw-r--r-- | uisimulator/common/sim_tasks.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |