summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/recorder/recording.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c
index 3ec1446972..a4662ab42e 100644
--- a/apps/recorder/recording.c
+++ b/apps/recorder/recording.c
@@ -80,7 +80,9 @@ static bool f3_rec_screen(void);
80#define MAX_FILE_SIZE 0x7F800000 /* 2 GB - 4 MB */ 80#define MAX_FILE_SIZE 0x7F800000 /* 2 GB - 4 MB */
81 81
82static int screen_update = NB_SCREENS; 82static int screen_update = NB_SCREENS;
83#ifdef HAVE_REMOTE_LCD
83static bool remote_display_on = true; 84static bool remote_display_on = true;
85#endif
84 86
85/** File name creation **/ 87/** File name creation **/
86#if CONFIG_CODEC == SWCODEC 88#if CONFIG_CODEC == SWCODEC
@@ -851,7 +853,7 @@ bool recording_screen(bool no_source)
851 853
852 if(rec_create_directory() > 0) 854 if(rec_create_directory() > 0)
853 have_recorded = true; 855 have_recorded = true;
854 856#ifdef HAVE_REMOTE_LCD
855 if (!remote_display_on) 857 if (!remote_display_on)
856 { 858 {
857 screens[1].clear_display(); 859 screens[1].clear_display();
@@ -861,6 +863,7 @@ bool recording_screen(bool no_source)
861 screens[1].update(); 863 screens[1].update();
862 gui_syncsplash(0, true, str(LANG_REMOTE_LCD_OFF)); 864 gui_syncsplash(0, true, str(LANG_REMOTE_LCD_OFF));
863 } 865 }
866#endif
864 867
865 while(!done) 868 while(!done)
866 { 869 {
@@ -927,6 +930,7 @@ bool recording_screen(bool no_source)
927 930
928 switch(button) 931 switch(button)
929 { 932 {
933#ifdef HAVE_REMOTE_LCD
930 case ACTION_REC_LCD: 934 case ACTION_REC_LCD:
931 if (remote_display_on) 935 if (remote_display_on)
932 { 936 {
@@ -945,7 +949,7 @@ bool recording_screen(bool no_source)
945 screen_update = NB_SCREENS; 949 screen_update = NB_SCREENS;
946 } 950 }
947 break; 951 break;
948 952#endif
949 case ACTION_STD_CANCEL: 953 case ACTION_STD_CANCEL:
950 /* turn off the trigger */ 954 /* turn off the trigger */
951 peak_meter_trigger(false); 955 peak_meter_trigger(false);