summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/target/arm/as3525/usb-as3525.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/usb-as3525.c b/firmware/target/arm/as3525/usb-as3525.c
index d9fb1fdfec..4e63054f46 100644
--- a/firmware/target/arm/as3525/usb-as3525.c
+++ b/firmware/target/arm/as3525/usb-as3525.c
@@ -33,10 +33,13 @@ static int usb_status = USB_EXTRACTED;
33void usb_enable(bool on) 33void usb_enable(bool on)
34{ 34{
35#if defined(HAVE_USBSTACK) 35#if defined(HAVE_USBSTACK)
36 if (on) 36 if (on){
37 cpu_boost(1);
37 usb_core_init(); 38 usb_core_init();
38 else 39 } else {
39 usb_core_exit(); 40 usb_core_exit();
41 cpu_boost(0);
42 }
40#else 43#else
41 (void)on; 44 (void)on;
42#endif 45#endif