summaryrefslogtreecommitdiffstats
path: root/apps/screen_access.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/screen_access.c')
-rw-r--r--apps/screen_access.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/screen_access.c b/apps/screen_access.c
index 9017cda787..0d7017984e 100644
--- a/apps/screen_access.c
+++ b/apps/screen_access.c
@@ -118,13 +118,13 @@ struct screen screens[NB_SCREENS] =
.backlight_on=&backlight_on,
.backlight_off=&backlight_off,
.is_backlight_on=&is_backlight_on,
- .backlight_set_timeout=&backlight_set_timeout
+ .backlight_set_timeout=&backlight_set_timeout,
#ifdef HAS_BUTTONBAR
- ,.has_buttonbar=false
+ .has_buttonbar=false
#endif
- }
-#ifdef HAVE_REMOTE_LCD
- ,{
+ },
+#if NB_SCREENS == 2
+ {
.screen_type=SCREEN_REMOTE,
.width=LCD_REMOTE_WIDTH,
.height=LCD_REMOTE_HEIGHT,