diff options
-rw-r--r-- | firmware/target/arm/pbell/vibe500/power-vibe500.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/pbell/vibe500/power-vibe500.c b/firmware/target/arm/pbell/vibe500/power-vibe500.c index e062ebddb7..6237f7eb8b 100644 --- a/firmware/target/arm/pbell/vibe500/power-vibe500.c +++ b/firmware/target/arm/pbell/vibe500/power-vibe500.c | |||
@@ -98,7 +98,7 @@ void ide_power_enable(bool on) | |||
98 | 98 | ||
99 | bool ide_powered(void) | 99 | bool ide_powered(void) |
100 | { | 100 | { |
101 | return ((GPIOC_INPUT_VAL & 0x08) == 1); | 101 | return ((GPIOC_INPUT_VAL & 0x08) != 0); |
102 | } | 102 | } |
103 | 103 | ||
104 | void power_off(void) | 104 | void power_off(void) |