RM2_1 #2

Merged
sundp merged 208 commits from RM2_1 into master 2024-09-13 09:16:14 +08:00
2 changed files with 18 additions and 13 deletions
Showing only changes of commit 3feaffc5c2 - Show all commits

View File

@ -213,7 +213,8 @@ enum sts_presence_fall_detection_type {
STS_PRESENCE_RISING,
STS_PRESENCE_LAYDOWN,
STS_PRESENCE_UNCONSCIOUS,
STS_PRESENCE_STAYSTILL
STS_PRESENCE_STAYSTILL,
STS_PRESENCE_NO_MOVEMENT
};
enum sts_sensor_result_t {

View File

@ -956,9 +956,10 @@ void OnSensor3BStateChanged(void)
break;
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_duration = 0;
}
break;
case STS_PRESENCE_RISING:
@ -969,9 +970,12 @@ void OnSensor3BStateChanged(void)
case STS_PRESENCE_UNCONSCIOUS:
sts_o7_sensorData.fall_laydown_duration = 0;
break;
case STS_PRESENCE_STAYSTILL:
case STS_PRESENCE_NO_MOVEMENT:
break;
default:
break;