Fix iPod Nano 2G charging detection
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23146 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8b3433e1c0
commit
008f01348b
1 changed files with 2 additions and 2 deletions
|
@ -68,11 +68,11 @@ bool usb_charging_enabled(void)
|
|||
|
||||
unsigned int power_input_status(void)
|
||||
{
|
||||
return (PDAT14 & 0x80) ? POWER_INPUT_NONE : POWER_INPUT_MAIN;
|
||||
return (PDAT14 & 8) ? POWER_INPUT_NONE : POWER_INPUT_MAIN_CHARGER;
|
||||
}
|
||||
|
||||
bool charging_state(void)
|
||||
{
|
||||
return (PDAT14 & 0x80) ? false : true;
|
||||
return (PDAT14 & 8) ? false : true;
|
||||
}
|
||||
#endif /* CONFIG_CHARGING */
|
||||
|
|
Loading…
Reference in a new issue