imx233: fix compilation for target with HAVE_BUTTON_DATA defined

Change-Id: I9d92320b1e545b7ac3983b7f9904f281028cc22d
This commit is contained in:
Amaury Pouly 2012-05-19 13:43:41 +02:00
parent 85d5c19347
commit 3f59cf9708

View file

@ -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)