From 9443aaa2d866ee7d60fa3e4f9c083bdc2df0359a Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Sat, 22 Jan 2022 13:33:39 -0500 Subject: [PATCH] Do state changes when in RECORD mode as well as it doesn't do motion detection Fixes #3411 --- src/zm_monitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index 2179197e8..9952f727f 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -2120,7 +2120,7 @@ bool Monitor::Analyse() { // snap->score -1 means didn't do motion detection so don't do state transition // In Nodect, we may still have a triggered event, so need this code to run to end the event. - } else if (!score and ((snap->score == 0) or (function == NODECT))) { + } else if (!score and ((snap->score == 0) or (function == NODECT || function == RECORD))) { Debug(1, "!score %s", State_Strings[state].c_str()); alert_to_alarm_frame_count = alarm_frame_count; // load same value configured for alarm_frame_count