--- ADD NO_MOVEMENT, UNCONCIOUS, STAYSTILL
This commit is contained in:
parent
2bf4134f7e
commit
3feaffc5c2
|
@ -213,7 +213,8 @@ enum sts_presence_fall_detection_type {
|
||||||
STS_PRESENCE_RISING,
|
STS_PRESENCE_RISING,
|
||||||
STS_PRESENCE_LAYDOWN,
|
STS_PRESENCE_LAYDOWN,
|
||||||
STS_PRESENCE_UNCONSCIOUS,
|
STS_PRESENCE_UNCONSCIOUS,
|
||||||
STS_PRESENCE_STAYSTILL
|
STS_PRESENCE_STAYSTILL,
|
||||||
|
STS_PRESENCE_NO_MOVEMENT
|
||||||
};
|
};
|
||||||
|
|
||||||
enum sts_sensor_result_t {
|
enum sts_sensor_result_t {
|
||||||
|
|
|
@ -956,9 +956,10 @@ void OnSensor3BStateChanged(void)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case STS_PRESENCE_FALL:
|
case STS_PRESENCE_FALL:
|
||||||
if (motion_in_hs_zone[0][motion_detected_count])
|
if (motion_in_hs_zone[0][motion_detected_count]) {
|
||||||
sts_o7_sensorData.event_sensor3_fall_start_time = sensor_event_time.Seconds;
|
sts_o7_sensorData.event_sensor3_fall_start_time = sensor_event_time.Seconds;
|
||||||
sts_o7_sensorData.event_sensor3_fall_duration = 0;
|
sts_o7_sensorData.event_sensor3_fall_duration = 0;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case STS_PRESENCE_RISING:
|
case STS_PRESENCE_RISING:
|
||||||
|
@ -969,9 +970,12 @@ void OnSensor3BStateChanged(void)
|
||||||
case STS_PRESENCE_UNCONSCIOUS:
|
case STS_PRESENCE_UNCONSCIOUS:
|
||||||
sts_o7_sensorData.fall_laydown_duration = 0;
|
sts_o7_sensorData.fall_laydown_duration = 0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case STS_PRESENCE_STAYSTILL:
|
case STS_PRESENCE_STAYSTILL:
|
||||||
|
case STS_PRESENCE_NO_MOVEMENT:
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue