forked from len0rd/rockbox
Fix tabs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17338 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
19425909c3
commit
5fc95a301d
1 changed files with 6 additions and 6 deletions
|
|
@ -251,15 +251,15 @@ bool button_hold(void)
|
|||
bool headphones_inserted(void)
|
||||
{
|
||||
#ifdef IPOD_1G2G
|
||||
if ((IPOD_HW_REVISION >> 16) == 2)
|
||||
if ((IPOD_HW_REVISION >> 16) == 2)
|
||||
{
|
||||
/* 2G uses GPIO B bit 0 */
|
||||
return (GPIOB_INPUT_VAL & 0x1)?true:false;
|
||||
/* 2G uses GPIO B bit 0 */
|
||||
return (GPIOB_INPUT_VAL & 0x1)?true:false;
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
/* 1G has no headphone detection, so fake insertion */
|
||||
return (true);
|
||||
/* 1G has no headphone detection, so fake insertion */
|
||||
return (true);
|
||||
}
|
||||
#else
|
||||
/* 3G uses GPIO C bit 0 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue