summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-05-01 20:10:39 +0000
committerJens Arnold <amiconn@rockbox.org>2005-05-01 20:10:39 +0000
commit4e2cee1ece2851312ac7aa3448090fc6623f74ac (patch)
tree8275e1d85b21b15d67476ee71d11fcbd29bd2e00
parentd6587f9b318342efcce0770df636619e43b98bc5 (diff)
downloadrockbox-4e2cee1ece2851312ac7aa3448090fc6623f74ac.tar.gz
rockbox-4e2cee1ece2851312ac7aa3448090fc6623f74ac.zip
Bugfix: The recording screen must not touch the LED if the LED is only simulated to avoid confusion (Ondio FM).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6392 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/recorder/recording.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c
index 68859632fa..73cb8671cf 100644
--- a/apps/recorder/recording.c
+++ b/apps/recorder/recording.c
@@ -308,7 +308,9 @@ bool recording_screen(void)
308 char path_buffer[MAX_PATH]; 308 char path_buffer[MAX_PATH];
309 bool been_in_usb_mode = false; 309 bool been_in_usb_mode = false;
310 int last_audio_stat = -1; 310 int last_audio_stat = -1;
311#ifdef HAVE_LED
311 bool last_led_stat = false; 312 bool last_led_stat = false;
313#endif
312 314
313 const unsigned char *byte_units[] = { 315 const unsigned char *byte_units[] = {
314 ID2P(LANG_BYTE), 316 ID2P(LANG_BYTE),
@@ -354,6 +356,7 @@ bool recording_screen(void)
354 while(!done) 356 while(!done)
355 { 357 {
356 int audio_stat = audio_status(); 358 int audio_stat = audio_status();
359#ifdef HAVE_LED
357 360
358 /* 361 /*
359 * Flash the LED while waiting to record. Turn it on while 362 * Flash the LED while waiting to record. Turn it on while
@@ -408,6 +411,7 @@ bool recording_screen(void)
408 led(false); 411 led(false);
409 } 412 }
410 } 413 }
414#endif /* HAVE_LED */
411 415
412 /* Wait for a button while drawing the peak meter */ 416 /* Wait for a button while drawing the peak meter */
413 button = peak_meter_draw_get_btn(0, 8 + h*2, LCD_WIDTH, h); 417 button = peak_meter_draw_get_btn(0, 8 + h*2, LCD_WIDTH, h);
@@ -597,8 +601,10 @@ bool recording_screen(void)
597 case REC_SETTINGS: 601 case REC_SETTINGS:
598 if(audio_stat != AUDIO_STATUS_RECORD) 602 if(audio_stat != AUDIO_STATUS_RECORD)
599 { 603 {
604#ifdef HAVE_LED
600 /* led is restored at begin of loop / end of function */ 605 /* led is restored at begin of loop / end of function */
601 led(false); 606 led(false);
607#endif
602 if (recording_menu(false)) 608 if (recording_menu(false))
603 { 609 {
604 return SYS_USB_CONNECTED; 610 return SYS_USB_CONNECTED;
@@ -628,8 +634,10 @@ bool recording_screen(void)
628 case REC_F2: 634 case REC_F2:
629 if(audio_stat != AUDIO_STATUS_RECORD) 635 if(audio_stat != AUDIO_STATUS_RECORD)
630 { 636 {
637#ifdef HAVE_LED
631 /* led is restored at begin of loop / end of function */ 638 /* led is restored at begin of loop / end of function */
632 led(false); 639 led(false);
640#endif
633 if (f2_rec_screen()) 641 if (f2_rec_screen())
634 { 642 {
635 have_recorded = true; 643 have_recorded = true;
@@ -652,8 +660,10 @@ bool recording_screen(void)
652 { 660 {
653 if(audio_stat != AUDIO_STATUS_RECORD) 661 if(audio_stat != AUDIO_STATUS_RECORD)
654 { 662 {
663#ifdef HAVE_LED
655 /* led is restored at begin of loop / end of function */ 664 /* led is restored at begin of loop / end of function */
656 led(false); 665 led(false);
666#endif
657 if (f3_rec_screen()) 667 if (f3_rec_screen())
658 { 668 {
659 have_recorded = true; 669 have_recorded = true;