1
0
Fork 0
forked from len0rd/rockbox

Detect iPod Nano 2G charging state correctly

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25100 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sparmann 2010-03-10 03:01:02 +00:00
parent 287eff2149
commit 0592704ab7

View file

@ -48,7 +48,7 @@ void power_off(void)
void power_init(void)
{
/* TODO */
pmu_write(0x1e, 15); /* Vcore = 1.000V */
}
#if CONFIG_CHARGING
@ -73,6 +73,6 @@ unsigned int power_input_status(void)
bool charging_state(void)
{
return (PDAT14 & 8) ? false : true;
return (PDAT11 & 0x10) ? false : true;
}
#endif /* CONFIG_CHARGING */