summaryrefslogtreecommitdiff
path: root/firmware/usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/usb.c')
-rw-r--r--firmware/usb.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/usb.c b/firmware/usb.c
index 3d94ccfce7..bb00a1be5f 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -273,6 +273,9 @@ static void usb_thread(void)
273#ifdef USB_STORAGE 273#ifdef USB_STORAGE
274 usb_core_enable_driver(USB_DRIVER_MASS_STORAGE, false); 274 usb_core_enable_driver(USB_DRIVER_MASS_STORAGE, false);
275#endif 275#endif
276#ifdef USB_HID
277 usb_core_enable_driver(USB_DRIVER_HID, false);
278#endif
276#ifdef USB_CHARGING_ONLY 279#ifdef USB_CHARGING_ONLY
277 usb_core_enable_driver(USB_DRIVER_CHARGING_ONLY, true); 280 usb_core_enable_driver(USB_DRIVER_CHARGING_ONLY, true);
278#endif 281#endif
@@ -291,6 +294,9 @@ static void usb_thread(void)
291#ifdef USB_STORAGE 294#ifdef USB_STORAGE
292 usb_core_enable_driver(USB_DRIVER_MASS_STORAGE, true); 295 usb_core_enable_driver(USB_DRIVER_MASS_STORAGE, true);
293#endif 296#endif
297#ifdef USB_HID
298 usb_core_enable_driver(USB_DRIVER_HID, true);
299#endif
294#ifdef USB_CHARGING_ONLY 300#ifdef USB_CHARGING_ONLY
295 usb_core_enable_driver(USB_DRIVER_CHARGING_ONLY, false); 301 usb_core_enable_driver(USB_DRIVER_CHARGING_ONLY, false);
296#endif 302#endif