summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2003-09-19 23:20:09 +0000
committerBjörn Stenberg <bjorn@haxx.se>2003-09-19 23:20:09 +0000
commitfad8f2c8c84e73c8136bb485bbf084c1f4766c8e (patch)
treeeafdf488fac50e98bde2dd2bd39d7d0c9a8bce4f
parent255f6eee4260ffeb3f142f5f05ebaece18d1ce04 (diff)
downloadrockbox-fad8f2c8c84e73c8136bb485bbf084c1f4766c8e.zip
rockbox-fad8f2c8c84e73c8136bb485bbf084c1f4766c8e.tar.gz
rockbox-fad8f2c8c84e73c8136bb485bbf084c1f4766c8e.tar.bz2
rockbox-fad8f2c8c84e73c8136bb485bbf084c1f4766c8e.tar.xz
Removed reboot when DC connected. It serves no purpose and is confusing to users.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3956 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/drivers/button.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index 1650767..847a0ba 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -116,17 +116,6 @@ static void button_tick(void)
repeat_count > POWEROFF_COUNT)
power_off();
#endif
-
- /* Reboot if the OFF button is pressed long enough
- and we are connected to a charger. */
-#ifdef HAVE_RECORDER_KEYPAD
- if(btn == BUTTON_OFF && charger_inserted() &&
- repeat_count > POWEROFF_COUNT)
-#elif HAVE_PLAYER_KEYPAD
- if(btn == BUTTON_STOP && charger_inserted() &&
- repeat_count > POWEROFF_COUNT)
-#endif
- system_reboot();
}
}
else