# HG changeset patch
# User Ideenmodellierer
# Date 1604857133 -3600
# Node ID af1c3e3abd5fc7a5d1256802124cc6244fa15d01
# Parent  469e93f8633ed355a0738d2c3345a4366c18cac1
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

diff -r 469e93f8633e -r af1c3e3abd5f Common/Inc/settings.h
--- 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
diff -r 469e93f8633e -r af1c3e3abd5f Discovery/Src/settings.c
--- 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)