Sansa AMS: fix system_exception_wait()

If a panicf() is called while a button is still pressed, the Sansa would
reboot immediately with no chance to see the message

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23490 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2009-11-03 07:42:42 +00:00
parent 890444c917
commit d06aafc03a

View file

@ -327,6 +327,9 @@ void system_reboot(void)
void system_exception_wait(void)
{
/* wait until button release (if a button is pressed) */
while(button_read_device());
/* then wait until next button press */
while(!button_read_device());
}