summaryrefslogtreecommitdiff
path: root/apps/recorder
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder')
-rw-r--r--apps/recorder/bounce.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/apps/recorder/bounce.c b/apps/recorder/bounce.c
index a1f22b56fa..f89f699862 100644
--- a/apps/recorder/bounce.c
+++ b/apps/recorder/bounce.c
@@ -243,15 +243,13 @@ static int scrollit(void)
243 char rock[]="Rockbox! Pure pleasure. Pure fun. Oooh. What fun! ;-) "; 243 char rock[]="Rockbox! Pure pleasure. Pure fun. Oooh. What fun! ;-) ";
244 int letter; 244 int letter;
245 245
246 while(button_get(false) & BUTTON_REL);
247
248 lcd_clear_display(); 246 lcd_clear_display();
249 while(1) 247 while(1)
250 { 248 {
251 b = button_get_w_tmo(HZ/10); 249 b = button_get_w_tmo(HZ/10);
252 if ( b & BUTTON_OFF ) 250 if ( b == (BUTTON_OFF|BUTTON_REL) )
253 return 0; 251 return 0;
254 else if ( b & BUTTON_ON ) 252 else if ( b == (BUTTON_ON|BUTTON_REL) )
255 return 1; 253 return 1;
256 254
257 lcd_clear_display(); 255 lcd_clear_display();
@@ -297,15 +295,13 @@ static int loopit(void)
297 int timeout=0; 295 int timeout=0;
298 char buffer[30]; 296 char buffer[30];
299 297
300 while(button_get(false) & BUTTON_REL);
301
302 lcd_clear_display(); 298 lcd_clear_display();
303 while(1) 299 while(1)
304 { 300 {
305 b = button_get_w_tmo(HZ/10); 301 b = button_get_w_tmo(HZ/10);
306 if ( b & BUTTON_OFF ) 302 if ( b == (BUTTON_OFF|BUTTON_REL) )
307 return 0; 303 return 0;
308 if ( b & BUTTON_ON ) 304 if ( b == (BUTTON_ON|BUTTON_REL) )
309 return 1; 305 return 1;
310 else if(b != BUTTON_NONE) 306 else if(b != BUTTON_NONE)
311 timeout=20; 307 timeout=20;