summaryrefslogtreecommitdiff
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
parent77d9b040fc0294ade60a7fbadc6b135f342e4a43 (diff)
downloadrockbox-22d790bd1289aa0ecfca9b34260f9ec8808ab83b.tar.gz
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
-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)
391bool headphones_inserted(void) 391bool headphones_inserted(void)
392{ 392{
393#if CONFIG_CPU==S5L8701 393#if CONFIG_CPU==S5L8701
394 return ((PDAT14 & (1 << 5)) == 0); 394 return ((PDAT14 & (1 << 5)) != 0);
395#elif CONFIG_CPU==S5L8702 395#elif CONFIG_CPU==S5L8702
396 //TODO: Implement 396 //TODO: Implement
397 return false; 397 return false;