diff options
Diffstat (limited to 'firmware/target/arm/iriver')
-rw-r--r-- | firmware/target/arm/iriver/h10/power-h10.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/firmware/target/arm/iriver/h10/power-h10.c b/firmware/target/arm/iriver/h10/power-h10.c index 9cbdb50080..7f3fb40b36 100644 --- a/firmware/target/arm/iriver/h10/power-h10.c +++ b/firmware/target/arm/iriver/h10/power-h10.c | |||
@@ -60,10 +60,9 @@ bool charger_inserted(void) | |||
60 | void ide_power_enable(bool on) | 60 | void ide_power_enable(bool on) |
61 | { | 61 | { |
62 | if(on){ | 62 | if(on){ |
63 | GPIOF_OUTPUT_VAL &=~ 0x1; | 63 | GPIO_CLEAR_BITWISE(GPIOF_OUTPUT_VAL, 0x01); |
64 | sleep(1); | ||
65 | } else { | 64 | } else { |
66 | GPIOF_OUTPUT_VAL |= 0x1; | 65 | GPIO_SET_BITWISE(GPIOF_OUTPUT_VAL, 0x01); |
67 | } | 66 | } |
68 | } | 67 | } |
69 | 68 | ||