summaryrefslogtreecommitdiff
path: root/apps/recorder/recording.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder/recording.c')
-rw-r--r--apps/recorder/recording.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c
index 111995cbfe..84c90d2d86 100644
--- a/apps/recorder/recording.c
+++ b/apps/recorder/recording.c
@@ -307,7 +307,7 @@ bool recording_screen(void)
307 char path_buffer[MAX_PATH]; 307 char path_buffer[MAX_PATH];
308 bool been_in_usb_mode = false; 308 bool been_in_usb_mode = false;
309 int last_audio_stat = -1; 309 int last_audio_stat = -1;
310#ifdef HAVE_LED 310#if CONFIG_LED == LED_REAL
311 bool led_state = false; 311 bool led_state = false;
312 int led_countdown = 2; 312 int led_countdown = 2;
313#endif 313#endif
@@ -320,7 +320,7 @@ bool recording_screen(void)
320 }; 320 };
321 321
322 cursor = 0; 322 cursor = 0;
323#if defined(HAVE_LED) && !defined(SIMULATOR) 323#if (CONFIG_LED == LED_REAL) && !defined(SIMULATOR)
324 ata_set_led_enabled(false); 324 ata_set_led_enabled(false);
325#endif 325#endif
326 mpeg_init_recording(); 326 mpeg_init_recording();
@@ -356,7 +356,7 @@ bool recording_screen(void)
356 while(!done) 356 while(!done)
357 { 357 {
358 int audio_stat = audio_status(); 358 int audio_stat = audio_status();
359#ifdef HAVE_LED 359#if CONFIG_LED == LED_REAL
360 360
361 /* 361 /*
362 * Flash the LED while waiting to record. Turn it on while 362 * Flash the LED while waiting to record. Turn it on while
@@ -401,7 +401,7 @@ bool recording_screen(void)
401 led(false); 401 led(false);
402 } 402 }
403 } 403 }
404#endif /* HAVE_LED */ 404#endif /* CONFIG_LED */
405 405
406 /* Wait for a button a while (HZ/10) drawing the peak meter */ 406 /* Wait for a button a while (HZ/10) drawing the peak meter */
407 button = peak_meter_draw_get_btn(0, 8 + h*2, LCD_WIDTH, h); 407 button = peak_meter_draw_get_btn(0, 8 + h*2, LCD_WIDTH, h);
@@ -574,7 +574,7 @@ bool recording_screen(void)
574 case REC_SETTINGS: 574 case REC_SETTINGS:
575 if(audio_stat != AUDIO_STATUS_RECORD) 575 if(audio_stat != AUDIO_STATUS_RECORD)
576 { 576 {
577#ifdef HAVE_LED 577#if CONFIG_LED == LED_REAL
578 /* led is restored at begin of loop / end of function */ 578 /* led is restored at begin of loop / end of function */
579 led(false); 579 led(false);
580#endif 580#endif
@@ -607,7 +607,7 @@ bool recording_screen(void)
607 case REC_F2: 607 case REC_F2:
608 if(audio_stat != AUDIO_STATUS_RECORD) 608 if(audio_stat != AUDIO_STATUS_RECORD)
609 { 609 {
610#ifdef HAVE_LED 610#if CONFIG_LED == LED_REAL
611 /* led is restored at begin of loop / end of function */ 611 /* led is restored at begin of loop / end of function */
612 led(false); 612 led(false);
613#endif 613#endif
@@ -633,7 +633,7 @@ bool recording_screen(void)
633 { 633 {
634 if(audio_stat != AUDIO_STATUS_RECORD) 634 if(audio_stat != AUDIO_STATUS_RECORD)
635 { 635 {
636#ifdef HAVE_LED 636#if CONFIG_LED == LED_REAL
637 /* led is restored at begin of loop / end of function */ 637 /* led is restored at begin of loop / end of function */
638 led(false); 638 led(false);
639#endif 639#endif
@@ -839,7 +839,7 @@ bool recording_screen(void)
839 if (have_recorded) 839 if (have_recorded)
840 reload_directory(); 840 reload_directory();
841 841
842#if defined(HAVE_LED) && !defined(SIMULATOR) 842#if (CONFIG_LED == LED_REAL) && !defined(SIMULATOR)
843 ata_set_led_enabled(true); 843 ata_set_led_enabled(true);
844#endif 844#endif
845 return been_in_usb_mode; 845 return been_in_usb_mode;