---- add overstay = 0 right after door open, SOS release
This commit is contained in:
parent
b0ddf93ed8
commit
5145565632
|
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue