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:
Michael Sparmann 2009-10-13 09:04:51 +00:00
parent 8b3433e1c0
commit 008f01348b

View file

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