mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-20 13:34:23 -04:00
Do state changes when in RECORD mode as well as it doesn't do motion detection Fixes #3411
This commit is contained in:
1 parent
90f75dae93
commit
9443aaa2d8
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user