1
0
Fork 0
forked from len0rd/rockbox

Fix tabs in .c and .h files in firmware/

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29832 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Bertrik Sikken 2011-05-08 11:37:18 +00:00
parent 897fd92827
commit 9c33dca647
6 changed files with 18 additions and 18 deletions

View file

@ -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