diff options
author | William Wilgus <wilgus.william@gmail.com> | 2021-10-31 12:14:50 -0400 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2021-10-31 12:42:24 -0400 |
commit | d72a0ed65d9cd8acc61b4ead0cc99057877a4c9f (patch) | |
tree | 038307ecb4b6906cfdcbd250cf34e5a1a84cf506 /uisimulator/common/sim_tasks.c | |
parent | 7a6737f4713a15fae7c4850395615804a09c742b (diff) | |
download | rockbox-d72a0ed65d9cd8acc61b4ead0cc99057877a4c9f.tar.gz rockbox-d72a0ed65d9cd8acc61b4ead0cc99057877a4c9f.zip |
Use USB events for storing plugin_menu state
use usb connected callback to cancel menu reentry after USB plug/unplug
Change-Id: I8267deed6e8ada94ca527392f56f50ef22def1d7
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 809b50569f..feb88e2c58 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 = 0; | 148 | int usbmode = USBMODE_DEFAULT; |
149 | if (inserted) | 149 | if (inserted) |
150 | { | 150 | { |
151 | send_event(SYS_EVENT_USB_INSERTED, &usbmode); | 151 | send_event(SYS_EVENT_USB_INSERTED, &usbmode); |