From 89646dd90cd21d1a0fb16b726cd5bf563c658609 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sat, 3 Jan 2009 14:00:23 +0000 Subject: fix yellow git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19658 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/lamp.c | 7 +++++-- 1 file 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 */ -- cgit v1.2.3