summaryrefslogtreecommitdiff
path: root/apps/recorder
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder')
-rw-r--r--apps/recorder/recording.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c
index 5a2aa096db..b2c81cd21b 100644
--- a/apps/recorder/recording.c
+++ b/apps/recorder/recording.c
@@ -66,6 +66,10 @@
66#include "talk.h" 66#include "talk.h"
67#include "sound.h" 67#include "sound.h"
68#include "storage.h" 68#include "storage.h"
69#if (CONFIG_STORAGE & STORAGE_ATA) && (CONFIG_LED == LED_REAL) \
70 && !defined(SIMULATOR)
71#include "ata.h"
72#endif
69#include "splash.h" 73#include "splash.h"
70#include "screen_access.h" 74#include "screen_access.h"
71#include "action.h" 75#include "action.h"
@@ -1033,8 +1037,9 @@ bool recording_screen(bool no_source)
1033 struct audio_recording_options rec_options; 1037 struct audio_recording_options rec_options;
1034 rec_status = RCSTAT_IN_RECSCREEN; 1038 rec_status = RCSTAT_IN_RECSCREEN;
1035 1039
1036#if (CONFIG_LED == LED_REAL) && !defined(SIMULATOR) 1040#if (CONFIG_STORAGE & STORAGE_ATA) && (CONFIG_LED == LED_REAL) \
1037 storage_set_led_enabled(false); 1041 && !defined(SIMULATOR)
1042 ata_set_led_enabled(false);
1038#endif 1043#endif
1039 1044
1040#if CONFIG_CODEC == SWCODEC 1045#if CONFIG_CODEC == SWCODEC
@@ -1904,8 +1909,9 @@ rec_abort:
1904 if (rec_status & (RCSTAT_CREATED_DIRECTORY | RCSTAT_HAVE_RECORDED)) 1909 if (rec_status & (RCSTAT_CREATED_DIRECTORY | RCSTAT_HAVE_RECORDED))
1905 reload_directory(); 1910 reload_directory();
1906 1911
1907#if (CONFIG_LED == LED_REAL) && !defined(SIMULATOR) 1912#if (CONFIG_STORAGE & STORAGE_ATA) && (CONFIG_LED == LED_REAL) \
1908 storage_set_led_enabled(true); 1913 && !defined(SIMULATOR)
1914 ata_set_led_enabled(true);
1909#endif 1915#endif
1910 1916
1911#if CONFIG_TUNER 1917#if CONFIG_TUNER