Mercurial > public > ostc4
changeset 550:af1c3e3abd5f
Make sure motion detection settings are set to default values:
In case the feature has been disabled by compile switch the default value shall be used to make sure SW is in a defined state. Usefull if switching between development and production software
author | Ideenmodellierer |
---|---|
date | Sun, 08 Nov 2020 18:38:53 +0100 |
parents | 469e93f8633e |
children | e3237f580ae9 |
files | Common/Inc/settings.h Discovery/Src/settings.c |
diffstat | 2 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Common/Inc/settings.h Sun Nov 08 18:36:02 2020 +0100 +++ b/Common/Inc/settings.h Sun Nov 08 18:38:53 2020 +0100 @@ -69,8 +69,7 @@ #define PRESSURE_OFFSET_LIMIT_MBAR 50 #define MAX_COMPASS_COMP (2u) - -#define MAX_VIEWPORT_MODE (2u) +#define MAX_VIEWPORT_MODE (0x1F) /* 2015 Jan 30, hw, deco and travel added for MenuEditGas * can be used for buehlmann, vpm, etc. later but be carefull
--- a/Discovery/Src/settings.c Sun Nov 08 18:36:02 2020 +0100 +++ b/Discovery/Src/settings.c Sun Nov 08 18:38:53 2020 +0100 @@ -1393,6 +1393,10 @@ } #else Settings.MotionDetection = MOTION_DETECT_OFF; + Settings.viewPortMode = 0; + Settings.viewRoll = 0.0; + Settings.viewPitch = 0.0; + Settings.viewYaw = 0.0; #endif if(Settings.compassInertia > MAX_COMPASS_COMP)