From 685acfecf4125735350291c0f39d22be19396ee7 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Thu, 10 Jun 2021 13:34:25 +0200 Subject: [PATCH] Set default values on custom screen options --- radio/src/gui/colorlcd/layouts/layout_factory_impl.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/radio/src/gui/colorlcd/layouts/layout_factory_impl.h b/radio/src/gui/colorlcd/layouts/layout_factory_impl.h index 1acb3f7c5..3a717a100 100644 --- a/radio/src/gui/colorlcd/layouts/layout_factory_impl.h +++ b/radio/src/gui/colorlcd/layouts/layout_factory_impl.h @@ -28,12 +28,12 @@ #include "widgets/widgets_container_impl.h" #include "layout.h" -#define LAYOUT_COMMON_OPTIONS \ - { STR_TOP_BAR, ZoneOption::Bool }, \ - { STR_FLIGHT_MODE, ZoneOption::Bool }, \ - { STR_SLIDERS, ZoneOption::Bool }, \ - { STR_TRIMS, ZoneOption::Bool }, \ - { STR_MIRROR, ZoneOption::Bool } +#define LAYOUT_COMMON_OPTIONS \ + {STR_TOP_BAR, ZoneOption::Bool, OPTION_VALUE_BOOL(true)}, \ + {STR_FLIGHT_MODE, ZoneOption::Bool, OPTION_VALUE_BOOL(true)}, \ + {STR_SLIDERS, ZoneOption::Bool, OPTION_VALUE_BOOL(true)}, \ + {STR_TRIMS, ZoneOption::Bool, OPTION_VALUE_BOOL(true)}, \ + {STR_MIRROR, ZoneOption::Bool, OPTION_VALUE_BOOL(false)} #define LAYOUT_OPTIONS_END \ { nullptr, ZoneOption::Bool }