From 514556563225e6a849eb21479822840e8809c24f Mon Sep 17 00:00:00 2001 From: YunHorn Technology Date: Thu, 25 Jul 2024 15:06:32 +0800 Subject: [PATCH] ---- add overstay = 0 right after door open, SOS release --- Core/Src/yunhorn_sts_process.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Core/Src/yunhorn_sts_process.c b/Core/Src/yunhorn_sts_process.c index 0a9b678..e96a95f 100644 --- a/Core/Src/yunhorn_sts_process.c +++ b/Core/Src/yunhorn_sts_process.c @@ -1094,6 +1094,7 @@ void OnSensor1StateChanged(void) sts_o7_sensorData.event_sensor1_start_time = 0; sts_o7_sensorData.event_sensor1_stop_time = sensor_event_time.Seconds; //sts_o7_sensorData.event_sensor1_duration = 0; + sts_o7_sensorData.over_stay_state = 0; } } @@ -1111,6 +1112,7 @@ void OnSensor2StateChanged(void) { sts_o7_sensorData.event_sensor2_start_time =0; sts_o7_sensorData.event_sensor2_stop_time = sensor_event_time.Seconds; + sts_o7_sensorData.over_stay_state = 0; //sts_o7_sensorData.event_sensor2_duration = 0; } } @@ -1133,6 +1135,7 @@ void OnSensor3StateChanged(void) { sts_o7_sensorData.event_sensor3_motion_stop_time = sensor_event_time.Seconds; //sts_o7_sensorData.event_sensor3_motion_duration = 0; + }