diff Discovery/Src/settings.c @ 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 daa8d4474ba0
children 5d80bb8d22cb
line wrap: on
line diff
--- 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)