From 22d790bd1289aa0ecfca9b34260f9ec8808ab83b Mon Sep 17 00:00:00 2001 From: Michael Sparmann Date: Thu, 16 Dec 2010 19:54:24 +0000 Subject: 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 --- firmware/target/arm/ipod/button-clickwheel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/target/arm/ipod') 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; -- cgit v1.2.3