summaryrefslogtreecommitdiff
path: root/firmware/usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/usb.c')
-rw-r--r--firmware/usb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/usb.c b/firmware/usb.c
index 529ecb773b..d59cbc3d15 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -191,8 +191,8 @@ static void usb_thread(void)
191 { 191 {
192 usb_state = USB_POWERED; 192 usb_state = USB_POWERED;
193#ifdef HAVE_USBSTACK 193#ifdef HAVE_USBSTACK
194 usb_core_enable_protocol(USB_DRIVER_MASS_STORAGE,false); 194 usb_core_enable_driver(USB_DRIVER_MASS_STORAGE,false);
195 usb_core_enable_protocol(USB_DRIVER_CHARGING_ONLY,true); 195 usb_core_enable_driver(USB_DRIVER_CHARGING_ONLY,true);
196 usb_enable(true); 196 usb_enable(true);
197#endif 197#endif
198 } 198 }
@@ -200,8 +200,8 @@ static void usb_thread(void)
200#endif 200#endif
201 { 201 {
202#ifdef HAVE_USBSTACK 202#ifdef HAVE_USBSTACK
203 usb_core_enable_protocol(USB_DRIVER_MASS_STORAGE,true); 203 usb_core_enable_driver(USB_DRIVER_MASS_STORAGE,true);
204 usb_core_enable_protocol(USB_DRIVER_CHARGING_ONLY,false); 204 usb_core_enable_driver(USB_DRIVER_CHARGING_ONLY,false);
205 usb_enable(true); 205 usb_enable(true);
206#else 206#else
207 /* Tell all threads that they have to back off the ATA. 207 /* Tell all threads that they have to back off the ATA.