diff options
Diffstat (limited to 'firmware/usbstack/usb_core.c')
| -rw-r--r-- | firmware/usbstack/usb_core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/usbstack/usb_core.c b/firmware/usbstack/usb_core.c index aa96fff..60a81b8 100644 --- a/firmware/usbstack/usb_core.c +++ b/firmware/usbstack/usb_core.c @@ -828,8 +828,8 @@ static void usb_core_control_request_handler(struct usb_ctrlrequest* req) #ifdef HAVE_USB_CHARGING_ENABLE timeout_cancel(&usb_no_host_timeout); if(usb_no_host) { - usb_no_host = false; - usb_charging_maxcurrent_change(usb_charging_maxcurrent()); + usb_no_host = false; + usb_charging_maxcurrent_change(usb_charging_maxcurrent()); } #endif if(usb_state == DEFAULT) { @@ -918,9 +918,9 @@ int usb_charging_maxcurrent() if (!initialized || usb_charging_mode == USB_CHARGING_DISABLE) return 100; if (usb_state == CONFIGURED) - return usb_charging_current_requested; + return usb_charging_current_requested; if (usb_charging_mode == USB_CHARGING_FORCE && usb_no_host) - return 500; + return 500; return 100; } #endif |