diff options
Diffstat (limited to 'firmware/target/hosted/sonynwz/system-nwz.c')
-rw-r--r-- | firmware/target/hosted/sonynwz/system-nwz.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/firmware/target/hosted/sonynwz/system-nwz.c b/firmware/target/hosted/sonynwz/system-nwz.c index c804c5ab66..5ef660be8c 100644 --- a/firmware/target/hosted/sonynwz/system-nwz.c +++ b/firmware/target/hosted/sonynwz/system-nwz.c | |||
@@ -167,15 +167,21 @@ void system_reboot(void) | |||
167 | power_off(); | 167 | power_off(); |
168 | } | 168 | } |
169 | 169 | ||
170 | #ifdef HAVE_BUTTON_DATA | ||
171 | #define IF_DATA(data) data | ||
172 | #else | ||
173 | #define IF_DATA(data) | ||
174 | #endif | ||
170 | void system_exception_wait(void) | 175 | void system_exception_wait(void) |
171 | { | 176 | { |
172 | backlight_hw_on(); | 177 | backlight_hw_on(); |
173 | backlight_hw_brightness(DEFAULT_BRIGHTNESS_SETTING); | 178 | backlight_hw_brightness(DEFAULT_BRIGHTNESS_SETTING); |
174 | /* wait until button press and release */ | 179 | /* wait until button press and release */ |
175 | while(button_read_device() != 0) {} | 180 | IF_DATA(int data); |
176 | while(button_read_device() == 0) {} | 181 | while(button_read_device(IF_DATA(&data)) != 0) {} |
177 | while(button_read_device() != 0) {} | 182 | while(button_read_device(IF_DATA(&data)) == 0) {} |
178 | while(button_read_device() == 0) {} | 183 | while(button_read_device(IF_DATA(&data)) != 0) {} |
184 | while(button_read_device(IF_DATA(&data)) == 0) {} | ||
179 | } | 185 | } |
180 | 186 | ||
181 | int hostfs_init(void) | 187 | int hostfs_init(void) |