summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorBoris Gjenero <dreamlayers@rockbox.org>2011-12-02 01:58:07 +0000
committerBoris Gjenero <dreamlayers@rockbox.org>2011-12-02 01:58:07 +0000
commit8687c5cebb458e983fa858f37a3bb1e1916fbfb2 (patch)
treedbc418e0189fb90e7962c2ad1c2e4a5740430719 /apps
parent7c0977b8786c738a5a7d053b2b2e4fe43bd2abb5 (diff)
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
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/resistor.c2
1 files changed, 1 insertions, 1 deletions
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;