mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
rk27generic: fix charging_state()
Change-Id: Iefa7fa4f9b2e535e2ab9004ffe8eeb8adf203f4b
This commit is contained in:
parent
b43171dcdf
commit
5a89549c86
1 changed files with 1 additions and 1 deletions
|
|
@ -45,5 +45,5 @@ unsigned int power_input_status(void)
|
||||||
|
|
||||||
bool charging_state(void)
|
bool charging_state(void)
|
||||||
{
|
{
|
||||||
return true;
|
return (usb_detect() == USB_INSERTED);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue