summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2009-01-03 14:00:23 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2009-01-03 14:00:23 +0000
commit89646dd90cd21d1a0fb16b726cd5bf563c658609 (patch)
treedbd4debd9d50db22b1a0a9e351853577c77cc620 /apps
parent071e3ef69161a1f0ce41d6c61b9292e0e52f5d4d (diff)
fix yellow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19658 a1c6a512-1295-4272-9138-f99709370657
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 */