summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
authorDaniel Ankers <dan@weirdo.org.uk>2006-10-16 00:18:49 +0000
committerDaniel Ankers <dan@weirdo.org.uk>2006-10-16 00:18:49 +0000
commit634f1d6b591ca4f8779f19bc3df54eb632c44db6 (patch)
treea61a2d12149525710c1c3621c20f7bd2edb39387 /firmware/target
parente147bf3d9f6f58087050415ab6c99372c0ffab8d (diff)
Fix a stupid bug (thanks to Frieder Ferlemann.) Get rid of MS-DOS line endings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11230 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/sandisk/sansa-e200/button-e200.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/sandisk/sansa-e200/button-e200.c b/firmware/target/arm/sandisk/sansa-e200/button-e200.c
index 104c7517d8..042c38a2c5 100644
--- a/firmware/target/arm/sandisk/sansa-e200/button-e200.c
+++ b/firmware/target/arm/sandisk/sansa-e200/button-e200.c
@@ -75,7 +75,7 @@ int button_read_device(void)
if ((state & 0x8) == 0) btn |= BUTTON_LEFT;
if ((state & 0x10) == 0) btn |= BUTTON_SELECT; /* The centre button */
if ((state & 0x20) == 0) btn |= BUTTON_UP; /* The "play" button */
- if ((state & 0x40) == 1) btn |= BUTTON_POWER;
+ if ((state & 0x40) != 0) btn |= BUTTON_POWER;
}
return btn;