Mercurial > public > ostc4
changeset 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 | e221cf762f45 |
children | 0a407cd48912 |
files | Discovery/Inc/configuration.h Discovery/Src/settings.c |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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;