diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-05-01 20:10:39 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-05-01 20:10:39 +0000 |
commit | 4e2cee1ece2851312ac7aa3448090fc6623f74ac (patch) | |
tree | 8275e1d85b21b15d67476ee71d11fcbd29bd2e00 /apps | |
parent | d6587f9b318342efcce0770df636619e43b98bc5 (diff) |
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
Diffstat (limited to 'apps')
-rw-r--r-- | apps/recorder/recording.c | 10 |
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) char path_buffer[MAX_PATH]; bool been_in_usb_mode = false; int last_audio_stat = -1; +#ifdef HAVE_LED bool last_led_stat = false; +#endif const unsigned char *byte_units[] = { ID2P(LANG_BYTE), @@ -354,6 +356,7 @@ bool recording_screen(void) while(!done) { int audio_stat = audio_status(); +#ifdef HAVE_LED /* * Flash the LED while waiting to record. Turn it on while @@ -408,6 +411,7 @@ bool recording_screen(void) led(false); } } +#endif /* HAVE_LED */ /* Wait for a button while drawing the peak meter */ button = peak_meter_draw_get_btn(0, 8 + h*2, LCD_WIDTH, h); @@ -597,8 +601,10 @@ bool recording_screen(void) case REC_SETTINGS: if(audio_stat != AUDIO_STATUS_RECORD) { +#ifdef HAVE_LED /* led is restored at begin of loop / end of function */ led(false); +#endif if (recording_menu(false)) { return SYS_USB_CONNECTED; @@ -628,8 +634,10 @@ bool recording_screen(void) case REC_F2: if(audio_stat != AUDIO_STATUS_RECORD) { +#ifdef HAVE_LED /* led is restored at begin of loop / end of function */ led(false); +#endif if (f2_rec_screen()) { have_recorded = true; @@ -652,8 +660,10 @@ bool recording_screen(void) { if(audio_stat != AUDIO_STATUS_RECORD) { +#ifdef HAVE_LED /* led is restored at begin of loop / end of function */ led(false); +#endif if (f3_rec_screen()) { have_recorded = true; |