diff options
Diffstat (limited to 'firmware/target/arm/ipod')
-rw-r--r-- | firmware/target/arm/ipod/button-clickwheel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/target/arm/ipod/button-clickwheel.c b/firmware/target/arm/ipod/button-clickwheel.c index a43a059692..2cddbd5950 100644 --- a/firmware/target/arm/ipod/button-clickwheel.c +++ b/firmware/target/arm/ipod/button-clickwheel.c | |||
@@ -394,6 +394,9 @@ bool button_hold(void) | |||
394 | holdswitch_last_read = USEC_TIMER; | 394 | holdswitch_last_read = USEC_TIMER; |
395 | holdswitch_last_value = (pmu_read(0x87) & 2) == 0; | 395 | holdswitch_last_value = (pmu_read(0x87) & 2) == 0; |
396 | } | 396 | } |
397 | if (holdswitch_last_value) | ||
398 | PCON(14) = (PCON(14) & ~0xffffff00) | 0x11111100; | ||
399 | else PCON(14) = (PCON(14) & ~0xffffff00) | 0x22222200; | ||
397 | return holdswitch_last_value; | 400 | return holdswitch_last_value; |
398 | #endif | 401 | #endif |
399 | } | 402 | } |