comparison 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
comparison
equal deleted inserted replaced
521:e221cf762f45 522:7512804bc6cf
1364 if(Settings.FlipDisplay > 1) /* only boolean values allowed */ 1364 if(Settings.FlipDisplay > 1) /* only boolean values allowed */
1365 { 1365 {
1366 Settings.FlipDisplay = 0; 1366 Settings.FlipDisplay = 0;
1367 corrections++; 1367 corrections++;
1368 } 1368 }
1369
1370 #ifdef ENABLE_MOTION_CONTROL
1369 if(Settings.MotionDetection >= MOTION_DETECT_END) 1371 if(Settings.MotionDetection >= MOTION_DETECT_END)
1370 { 1372 {
1371 Settings.MotionDetection = MOTION_DETECT_OFF; 1373 Settings.MotionDetection = MOTION_DETECT_OFF;
1372 corrections++; 1374 corrections++;
1373 } 1375 }
1376 #else
1377 Settings.MotionDetection = MOTION_DETECT_OFF;
1378 #endif
1374 1379
1375 if(corrections > 255) 1380 if(corrections > 255)
1376 return 255; 1381 return 255;
1377 else 1382 else
1378 return (uint8_t)corrections; 1383 return (uint8_t)corrections;