diff options
author | Magnus Holmgren <magnushol@gmail.com> | 2007-02-17 23:22:37 +0000 |
---|---|---|
committer | Magnus Holmgren <magnushol@gmail.com> | 2007-02-17 23:22:37 +0000 |
commit | 2067fcc695852a5589d6dded27cde77e20380179 (patch) | |
tree | 4face0c925a271b5cdf25ca743b428c1a049790a /apps/recorder/recording.c | |
parent | d52ee4c0d6f1f63a57365dbf83a1d6dc0266fc5d (diff) | |
download | rockbox-2067fcc695852a5589d6dded27cde77e20380179.tar.gz rockbox-2067fcc695852a5589d6dded27cde77e20380179.zip |
Fix most (all?) CONFIG_LED warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12370 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/recording.c')
-rw-r--r-- | apps/recorder/recording.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index eb6f9b20ca..967df2826a 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c | |||
@@ -773,7 +773,7 @@ bool recording_screen(bool no_source) | |||
773 | FMRADIO_OFF : get_radio_status(); | 773 | FMRADIO_OFF : get_radio_status(); |
774 | #endif | 774 | #endif |
775 | int talk_menu = global_settings.talk_menu; | 775 | int talk_menu = global_settings.talk_menu; |
776 | #if CONFIG_LED == LED_REAL | 776 | #if defined(CONFIG_LED) && (CONFIG_LED == LED_REAL) |
777 | bool led_state = false; | 777 | bool led_state = false; |
778 | int led_countdown = 2; | 778 | int led_countdown = 2; |
779 | #endif | 779 | #endif |
@@ -803,7 +803,7 @@ bool recording_screen(bool no_source) | |||
803 | 803 | ||
804 | in_screen = true; | 804 | in_screen = true; |
805 | cursor = 0; | 805 | cursor = 0; |
806 | #if (CONFIG_LED == LED_REAL) && !defined(SIMULATOR) | 806 | #if defined(CONFIG_LED) && (CONFIG_LED == LED_REAL) && !defined(SIMULATOR) |
807 | ata_set_led_enabled(false); | 807 | ata_set_led_enabled(false); |
808 | #endif | 808 | #endif |
809 | 809 | ||
@@ -876,7 +876,7 @@ bool recording_screen(bool no_source) | |||
876 | { | 876 | { |
877 | audio_stat = audio_status(); | 877 | audio_stat = audio_status(); |
878 | 878 | ||
879 | #if CONFIG_LED == LED_REAL | 879 | #if defined(CONFIG_LED) && (CONFIG_LED == LED_REAL) |
880 | 880 | ||
881 | /* | 881 | /* |
882 | * Flash the LED while waiting to record. Turn it on while | 882 | * Flash the LED while waiting to record. Turn it on while |
@@ -1188,7 +1188,7 @@ bool recording_screen(bool no_source) | |||
1188 | const int prev_rec_source = global_settings.rec_source; | 1188 | const int prev_rec_source = global_settings.rec_source; |
1189 | #endif | 1189 | #endif |
1190 | 1190 | ||
1191 | #if CONFIG_LED == LED_REAL | 1191 | #if defined(CONFIG_LED) && (CONFIG_LED == LED_REAL) |
1192 | /* led is restored at begin of loop / end of function */ | 1192 | /* led is restored at begin of loop / end of function */ |
1193 | led(false); | 1193 | led(false); |
1194 | #endif | 1194 | #endif |
@@ -1251,7 +1251,7 @@ bool recording_screen(bool no_source) | |||
1251 | case ACTION_REC_F2: | 1251 | case ACTION_REC_F2: |
1252 | if(audio_stat != AUDIO_STATUS_RECORD) | 1252 | if(audio_stat != AUDIO_STATUS_RECORD) |
1253 | { | 1253 | { |
1254 | #if CONFIG_LED == LED_REAL | 1254 | #if defined(CONFIG_LED) && (CONFIG_LED == LED_REAL) |
1255 | /* led is restored at begin of loop / end of function */ | 1255 | /* led is restored at begin of loop / end of function */ |
1256 | led(false); | 1256 | led(false); |
1257 | #endif | 1257 | #endif |
@@ -1275,7 +1275,7 @@ bool recording_screen(bool no_source) | |||
1275 | { | 1275 | { |
1276 | if(audio_stat != AUDIO_STATUS_RECORD) | 1276 | if(audio_stat != AUDIO_STATUS_RECORD) |
1277 | { | 1277 | { |
1278 | #if CONFIG_LED == LED_REAL | 1278 | #if defined(CONFIG_LED) && (CONFIG_LED == LED_REAL) |
1279 | /* led is restored at begin of loop / end of function */ | 1279 | /* led is restored at begin of loop / end of function */ |
1280 | led(false); | 1280 | led(false); |
1281 | #endif | 1281 | #endif |
@@ -1780,7 +1780,7 @@ bool recording_screen(bool no_source) | |||
1780 | if (have_recorded) | 1780 | if (have_recorded) |
1781 | reload_directory(); | 1781 | reload_directory(); |
1782 | 1782 | ||
1783 | #if (CONFIG_LED == LED_REAL) && !defined(SIMULATOR) | 1783 | #if defined(CONFIG_LED) && (CONFIG_LED == LED_REAL) && !defined(SIMULATOR) |
1784 | ata_set_led_enabled(true); | 1784 | ata_set_led_enabled(true); |
1785 | #endif | 1785 | #endif |
1786 | return been_in_usb_mode; | 1786 | return been_in_usb_mode; |