From fad8f2c8c84e73c8136bb485bbf084c1f4766c8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stenberg?= Date: Fri, 19 Sep 2003 23:20:09 +0000 Subject: [PATCH] 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 --- firmware/drivers/button.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index 1650767ca8..847a0ba82d 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