# HG changeset patch # User Ideenmodellierer # Date 1599763896 -7200 # Node ID 7512804bc6cf30df2dd0361376bffe5f19b94319 # Parent e221cf762f455a39adb2601d3eb136b52515546c 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. diff -r e221cf762f45 -r 7512804bc6cf Discovery/Inc/configuration.h --- a/Discovery/Inc/configuration.h Thu Sep 10 20:47:48 2020 +0200 +++ b/Discovery/Inc/configuration.h Thu Sep 10 20:51:36 2020 +0200 @@ -49,4 +49,7 @@ /* Enable to have access to the debug view options (turn on / off via menu instead of compile switch) */ /* #define HAVE_DEBUG_VIEW */ +/* Enable to have access to the motion control selection menu */ +/* #define ENABLE_MOTION_CONTROL */ + #endif diff -r e221cf762f45 -r 7512804bc6cf Discovery/Src/settings.c --- 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;