diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/target/arm/imx233/system-imx233.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/system-imx233.c b/firmware/target/arm/imx233/system-imx233.c index eb9a3f8ee0..5ef52c7957 100644 --- a/firmware/target/arm/imx233/system-imx233.c +++ b/firmware/target/arm/imx233/system-imx233.c | |||
@@ -63,9 +63,16 @@ void system_exception_wait(void) | |||
63 | _backlight_on(); | 63 | _backlight_on(); |
64 | _backlight_set_brightness(DEFAULT_BRIGHTNESS_SETTING); | 64 | _backlight_set_brightness(DEFAULT_BRIGHTNESS_SETTING); |
65 | /* wait until button release (if a button is pressed) */ | 65 | /* wait until button release (if a button is pressed) */ |
66 | #ifdef HAVE_BUTTON_DATA | ||
67 | int data; | ||
68 | while(button_read_device(&data)); | ||
69 | /* then wait until next button press */ | ||
70 | while(!button_read_device(&data)); | ||
71 | #else | ||
66 | while(button_read_device()); | 72 | while(button_read_device()); |
67 | /* then wait until next button press */ | 73 | /* then wait until next button press */ |
68 | while(!button_read_device()); | 74 | while(!button_read_device()); |
75 | #endif | ||
69 | } | 76 | } |
70 | 77 | ||
71 | int system_memory_guard(int newmode) | 78 | int system_memory_guard(int newmode) |