comparison Discovery/Inc/motion.h @ 375:4bb5ceebfaf9 MotionDetection

Use Enum values for initialization and setting check: Scroll function could not be restored because of invalid setting plausibility check =>Use enums to determine proper max value for the MotionDetection parameter
author ideenmodellierer
date Tue, 10 Sep 2019 20:51:55 +0200
parents 7b981f8bdd41
children 49a02dea8ae3
comparison
equal deleted inserted replaced
374:ef1b8579166c 375:4bb5ceebfaf9
16 typedef enum 16 typedef enum
17 { 17 {
18 MOTION_DETECT_OFF = 0, 18 MOTION_DETECT_OFF = 0,
19 MOTION_DETECT_SECTOR, 19 MOTION_DETECT_SECTOR,
20 MOTION_DETECT_MOVE, 20 MOTION_DETECT_MOVE,
21 MOTION_DETECT_SCROLL 21 MOTION_DETECT_SCROLL,
22 MOTION_DETECT_END
22 } MotionDetectMethod_t; 23 } MotionDetectMethod_t;
23 24
24 typedef enum 25 typedef enum
25 { 26 {
26 DETECT_START = 0, 27 DETECT_START = 0,