diff options
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/arm/sandisk/sansa-e200/button-e200.c | 2 |
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; |