diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2005-06-04 23:15:52 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2005-06-04 23:15:52 +0000 |
| commit | 5690f78fb23ec66aeadf5ecf8200b5610b3e59d2 (patch) | |
| tree | 62bab156602ab905851fbb000c22d48bf2f8f85e /apps/recorder/recording.c | |
| parent | c9cc73ec1988dae9e3d1a09347ceac2a4ecc1f67 (diff) | |
| download | rockbox-5690f78fb23ec66aeadf5ecf8200b5610b3e59d2.zip rockbox-5690f78fb23ec66aeadf5ecf8200b5610b3e59d2.tar.gz rockbox-5690f78fb23ec66aeadf5ecf8200b5610b3e59d2.tar.bz2 rockbox-5690f78fb23ec66aeadf5ecf8200b5610b3e59d2.tar.xz | |
Multiple choice LED configuration instead of HAVE_LED. Removes erroneous MMC icon display on iriver, and saves some code on Ondio. Removed invert_led() as it is no longer used.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6568 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/recording.c')
| -rw-r--r-- | apps/recorder/recording.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index 111995c..84c90d2 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c @@ -307,7 +307,7 @@ bool recording_screen(void) char path_buffer[MAX_PATH]; bool been_in_usb_mode = false; int last_audio_stat = -1; -#ifdef HAVE_LED +#if CONFIG_LED == LED_REAL bool led_state = false; int led_countdown = 2; #endif @@ -320,7 +320,7 @@ bool recording_screen(void) }; cursor = 0; -#if defined(HAVE_LED) && !defined(SIMULATOR) +#if (CONFIG_LED == LED_REAL) && !defined(SIMULATOR) ata_set_led_enabled(false); #endif mpeg_init_recording(); @@ -356,7 +356,7 @@ bool recording_screen(void) while(!done) { int audio_stat = audio_status(); -#ifdef HAVE_LED +#if CONFIG_LED == LED_REAL /* * Flash the LED while waiting to record. Turn it on while @@ -401,7 +401,7 @@ bool recording_screen(void) led(false); } } -#endif /* HAVE_LED */ +#endif /* CONFIG_LED */ /* Wait for a button a while (HZ/10) drawing the peak meter */ button = peak_meter_draw_get_btn(0, 8 + h*2, LCD_WIDTH, h); @@ -574,7 +574,7 @@ bool recording_screen(void) case REC_SETTINGS: if(audio_stat != AUDIO_STATUS_RECORD) { -#ifdef HAVE_LED +#if CONFIG_LED == LED_REAL /* led is restored at begin of loop / end of function */ led(false); #endif @@ -607,7 +607,7 @@ bool recording_screen(void) case REC_F2: if(audio_stat != AUDIO_STATUS_RECORD) { -#ifdef HAVE_LED +#if CONFIG_LED == LED_REAL /* led is restored at begin of loop / end of function */ led(false); #endif @@ -633,7 +633,7 @@ bool recording_screen(void) { if(audio_stat != AUDIO_STATUS_RECORD) { -#ifdef HAVE_LED +#if CONFIG_LED == LED_REAL /* led is restored at begin of loop / end of function */ led(false); #endif @@ -839,7 +839,7 @@ bool recording_screen(void) if (have_recorded) reload_directory(); -#if defined(HAVE_LED) && !defined(SIMULATOR) +#if (CONFIG_LED == LED_REAL) && !defined(SIMULATOR) ata_set_led_enabled(true); #endif return been_in_usb_mode; |