summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/lamp.c7
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
rb->lcd_clear_display();
rb->lcd_update();
/* wait */
- while(rb->button_get(false) == BUTTON_NONE)
+ do
{
+ button = rb->button_get(false);
+ if (button && !IS_SYSEVENT(button))
+ break;
rb->yield();
- }
+ } while (1);
#endif /*HAVE_LCD_COLOR */