diff --git a/firmware/target/arm/s3c2440/gigabeat-fx/button-meg-fx.c b/firmware/target/arm/s3c2440/gigabeat-fx/button-meg-fx.c index 0e69cbd420..55fdad1159 100644 --- a/firmware/target/arm/s3c2440/gigabeat-fx/button-meg-fx.c +++ b/firmware/target/arm/s3c2440/gigabeat-fx/button-meg-fx.c @@ -155,6 +155,18 @@ int button_read_device(void) buttonlight_on(); } + /* the cradle buttons */ + buttons = ~GPFDAT & 0xc0; + if (buttons) + { + if (buttons & (1 << 6)) + btn |= BUTTON_A; + + if (buttons & (1 << 7)) + btn |= BUTTON_POWER; + buttonlight_on(); + } + return btn; }