From 8687c5cebb458e983fa858f37a3bb1e1916fbfb2 Mon Sep 17 00:00:00 2001 From: Boris Gjenero Date: Fri, 2 Dec 2011 01:58:07 +0000 Subject: [PATCH] Fix FS#11675 : LED resistor calculator does not wait for keypress. Thanks to Michael Chicoine for reporting the bug. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31107 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/resistor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/plugins/resistor.c b/apps/plugins/resistor.c index e7693f6272..8dea817898 100644 --- a/apps/plugins/resistor.c +++ b/apps/plugins/resistor.c @@ -760,7 +760,7 @@ static void led_resistance_calc(void) rb->lcd_update(); - button_press = rb->button_get(true); + while ((button_press = rb->button_get(true)) & BUTTON_REL); switch(button_press) { case PLA_SELECT: break;