summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/drivers/button.c2
-rwxr-xr-xfirmware/target/coldfire/iaudio/x5/button-target.h5
2 files changed, 5 insertions, 2 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index 5e6f6b4827..daad4f17de 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -489,6 +489,8 @@ static void button_tick(void)
if ((btn == POWEROFF_BUTTON
#ifdef BUTTON_RC_STOP
|| btn == BUTTON_RC_STOP
+#elif defined(RC_POWEROFF_BUTTON)
+ || btn == RC_POWEROFF_BUTTON
#endif
) &&
#if defined(CONFIG_CHARGING) && !defined(HAVE_POWEROFF_WHILE_CHARGING)
diff --git a/firmware/target/coldfire/iaudio/x5/button-target.h b/firmware/target/coldfire/iaudio/x5/button-target.h
index 998522fe15..ab6e770ed3 100755
--- a/firmware/target/coldfire/iaudio/x5/button-target.h
+++ b/firmware/target/coldfire/iaudio/x5/button-target.h
@@ -64,7 +64,8 @@ int button_read_device(void);
|BUTTON_RC_REW|BUTTON_RC_FF\
|BUTTON_RC_REC|BUTTON_RC_MENU|BUTTON_RC_MODE)
-#define POWEROFF_BUTTON BUTTON_POWER
-#define POWEROFF_COUNT 10
+#define POWEROFF_BUTTON BUTTON_POWER
+#define RC_POWEROFF_BUTTON BUTTON_RC_PLAY
+#define POWEROFF_COUNT 30
#endif /* _BUTTON_TARGET_H_ */