diff Discovery/Src/settings.c @ 522:7512804bc6cf

Added compile switch for motion control: The motion control function has only beta maturity at the moment. In previous version it was more or less hidden in a sub menu. Because it is now on a top level page the compile switch has been added to enable deactivation till function is more mature.
author Ideenmodellierer
date Thu, 10 Sep 2020 20:51:36 +0200
parents 06b21f1e47a5
children 02e7e11fdbe8
line wrap: on
line diff
--- a/Discovery/Src/settings.c	Thu Sep 10 20:47:48 2020 +0200
+++ b/Discovery/Src/settings.c	Thu Sep 10 20:51:36 2020 +0200
@@ -1366,11 +1366,16 @@
     	Settings.FlipDisplay = 0;
 	    corrections++;
    	}
+
+#ifdef ENABLE_MOTION_CONTROL
     if(Settings.MotionDetection >= MOTION_DETECT_END)
    	{
     	Settings.MotionDetection = MOTION_DETECT_OFF;
 	    corrections++;
    	}
+#else
+    Settings.MotionDetection = MOTION_DETECT_OFF;
+#endif
 
     if(corrections > 255)
         return 255;