summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/samsung_yps3.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/bootloader/samsung_yps3.c b/bootloader/samsung_yps3.c
index 33115a92ac..e541ff2f53 100644
--- a/bootloader/samsung_yps3.c
+++ b/bootloader/samsung_yps3.c
@@ -266,6 +266,12 @@ void main(void)
lcd_puts(0, line++, mystring);
#endif
+#if 1 /* power off using power button */
+ button = button_read_device();
+ if (button & BUTTON_POWER) {
+ power_off();
+ }
+#endif
#if 1 /* button info */
snprintf(mystring, 64, "BUTTONS %08X, %s", button_read_device(),