mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
imx233: fix compilation for target with HAVE_BUTTON_DATA defined
Change-Id: I9d92320b1e545b7ac3983b7f9904f281028cc22d
This commit is contained in:
parent
85d5c19347
commit
3f59cf9708
1 changed files with 7 additions and 0 deletions
|
|
@ -63,9 +63,16 @@ void system_exception_wait(void)
|
|||
_backlight_on();
|
||||
_backlight_set_brightness(DEFAULT_BRIGHTNESS_SETTING);
|
||||
/* wait until button release (if a button is pressed) */
|
||||
#ifdef HAVE_BUTTON_DATA
|
||||
int data;
|
||||
while(button_read_device(&data));
|
||||
/* then wait until next button press */
|
||||
while(!button_read_device(&data));
|
||||
#else
|
||||
while(button_read_device());
|
||||
/* then wait until next button press */
|
||||
while(!button_read_device());
|
||||
#endif
|
||||
}
|
||||
|
||||
int system_memory_guard(int newmode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue