Code policing

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8989 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Brandon Low 2006-03-10 12:55:13 +00:00
parent ea4dea67ae
commit 4431ab237e

View file

@ -478,10 +478,11 @@ static void button_tick(void)
which doesn't shut down easily with the OFF
key */
#ifdef HAVE_SW_POWEROFF
if ((btn == POWEROFF_BUTTON
#ifdef BUTTON_RC_STOP
if ((btn == POWEROFF_BUTTON || btn == BUTTON_RC_STOP) &&
|| btn == BUTTON_RC_STOP) &&
#else
if (btn == POWEROFF_BUTTON &&
) &&
#endif
#if defined(HAVE_CHARGING) && !defined(HAVE_POWEROFF_WHILE_CHARGING)
!charger_inserted() &&
@ -518,7 +519,8 @@ static void button_tick(void)
{
if (queue_empty(&button_queue))
{
queue_post(&button_queue, BUTTON_REPEAT | btn, NULL);
queue_post(
&button_queue, BUTTON_REPEAT | btn, NULL);
post = false;
}
}