mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-20 10:32:42 -05:00
Hopefully correct charger connected detection for ipod video thanks to Herz's patch
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9090 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
03627e0539
commit
96e4946d9d
1 changed files with 1 additions and 2 deletions
|
|
@ -124,8 +124,7 @@ bool charger_inserted(void)
|
||||||
#elif defined(TOSHIBA_GIGABEAT_F)
|
#elif defined(TOSHIBA_GIGABEAT_F)
|
||||||
return false;
|
return false;
|
||||||
#elif defined(APPLE_IPODVIDEO)
|
#elif defined(APPLE_IPODVIDEO)
|
||||||
/* We need to get this value a faster way than i2c */
|
return (GPIOL_INPUT_VAL & 0x08)?false:true;
|
||||||
return (GPIOA_INPUT_VAL & 0x10)?true:false;
|
|
||||||
#elif defined(IPOD_ARCH)
|
#elif defined(IPOD_ARCH)
|
||||||
/* This needs filling in for other ipods. */
|
/* This needs filling in for other ipods. */
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue