From 657a353c349e59635d684731dd51957e107d0b50 Mon Sep 17 00:00:00 2001 From: Joe540 Date: Sun, 12 Apr 2020 20:42:43 -0400 Subject: [PATCH] Support event_close_mode for record mode Support event_close_mode for record mode (with linked monitor) --- 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 1186c75f7..98701c7c2 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -1659,7 +1659,7 @@ bool Monitor::Analyse() { Info("%s: %03d - Left alarm state (%" PRIu64 ") - %d(%d) images", name, image_count, event->Id(), event->Frames(), event->AlarmFrames()); //if ( function != MOCORD || event_close_mode == CLOSE_ALARM || event->Cause() == SIGNAL_CAUSE ) - if ( function != MOCORD || event_close_mode == CLOSE_ALARM ) { + if ( ( function != MOCORD && function != RECORD ) || event_close_mode == CLOSE_ALARM ) { shared_data->state = state = IDLE; Info("%s: %03d - Closing event %" PRIu64 ", alarm end%s", name, image_count, event->Id(), (function==MOCORD)?", section truncated":"");