diff options
-rw-r--r-- | apps/plugins/lamp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/plugins/lamp.c b/apps/plugins/lamp.c index ace6545865..b5e25daa65 100644 --- a/apps/plugins/lamp.c +++ b/apps/plugins/lamp.c | |||
@@ -208,10 +208,13 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame | |||
208 | rb->lcd_clear_display(); | 208 | rb->lcd_clear_display(); |
209 | rb->lcd_update(); | 209 | rb->lcd_update(); |
210 | /* wait */ | 210 | /* wait */ |
211 | while(rb->button_get(false) == BUTTON_NONE) | 211 | do |
212 | { | 212 | { |
213 | button = rb->button_get(false); | ||
214 | if (button && !IS_SYSEVENT(button)) | ||
215 | break; | ||
213 | rb->yield(); | 216 | rb->yield(); |
214 | } | 217 | } while (1); |
215 | 218 | ||
216 | #endif /*HAVE_LCD_COLOR */ | 219 | #endif /*HAVE_LCD_COLOR */ |
217 | 220 | ||