diff options
-rw-r--r-- | firmware/target/arm/ipod/button-clickwheel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/ipod/button-clickwheel.c b/firmware/target/arm/ipod/button-clickwheel.c index a22929760c..dd561b2e50 100644 --- a/firmware/target/arm/ipod/button-clickwheel.c +++ b/firmware/target/arm/ipod/button-clickwheel.c | |||
@@ -389,7 +389,7 @@ bool button_hold(void) | |||
389 | #if CONFIG_CPU==S5L8701 | 389 | #if CONFIG_CPU==S5L8701 |
390 | bool value = (PDAT14 & (1 << 6)) == 0; | 390 | bool value = (PDAT14 & (1 << 6)) == 0; |
391 | if (value) | 391 | if (value) |
392 | PCON15 = (PCON15 & ~0xffff0000) | 0x11110000; | 392 | PCON15 = PCON15 & ~0xffff0000; |
393 | else PCON15 = (PCON15 & ~0xffff0000) | 0x22220000; | 393 | else PCON15 = (PCON15 & ~0xffff0000) | 0x22220000; |
394 | return value; | 394 | return value; |
395 | #elif CONFIG_CPU==S5L8702 | 395 | #elif CONFIG_CPU==S5L8702 |
@@ -399,7 +399,7 @@ bool button_hold(void) | |||
399 | holdswitch_last_value = (pmu_read(0x87) & 2) == 0; | 399 | holdswitch_last_value = (pmu_read(0x87) & 2) == 0; |
400 | } | 400 | } |
401 | if (holdswitch_last_value) | 401 | if (holdswitch_last_value) |
402 | PCON(14) = (PCON(14) & ~0xffffff00) | 0x11111100; | 402 | PCON(14) = PCON(14) & ~0xffffff00; |
403 | else PCON(14) = (PCON(14) & ~0xffffff00) | 0x22222200; | 403 | else PCON(14) = (PCON(14) & ~0xffffff00) | 0x22222200; |
404 | return holdswitch_last_value; | 404 | return holdswitch_last_value; |
405 | #endif | 405 | #endif |