summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/ipod
diff options
context:
space:
mode:
authorMichael Sparmann <theseven@rockbox.org>2010-12-16 19:54:24 +0000
committerMichael Sparmann <theseven@rockbox.org>2010-12-16 19:54:24 +0000
commit22d790bd1289aa0ecfca9b34260f9ec8808ab83b (patch)
tree1e61e159b4c1500b17cc687779daf5bef343cc9c /firmware/target/arm/ipod
parent77d9b040fc0294ade60a7fbadc6b135f342e4a43 (diff)
downloadrockbox-22d790bd1289aa0ecfca9b34260f9ec8808ab83b.tar.gz
rockbox-22d790bd1289aa0ecfca9b34260f9ec8808ab83b.tar.bz2
rockbox-22d790bd1289aa0ecfca9b34260f9ec8808ab83b.zip
Fix headphone detection on iPod Nano 2G being inverted (regression from r28800)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28843 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/ipod')
-rw-r--r--firmware/target/arm/ipod/button-clickwheel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/ipod/button-clickwheel.c b/firmware/target/arm/ipod/button-clickwheel.c
index eb7c36b6ee..46e91099f0 100644
--- a/firmware/target/arm/ipod/button-clickwheel.c
+++ b/firmware/target/arm/ipod/button-clickwheel.c
@@ -391,7 +391,7 @@ bool button_hold(void)
bool headphones_inserted(void)
{
#if CONFIG_CPU==S5L8701
- return ((PDAT14 & (1 << 5)) == 0);
+ return ((PDAT14 & (1 << 5)) != 0);
#elif CONFIG_CPU==S5L8702
//TODO: Implement
return false;