From ea0ad373fe6ef9d8a85b04eda2a1b464b9933947 Mon Sep 17 00:00:00 2001 From: ovargasp <59069596+ovargasp@users.noreply.github.com> Date: Wed, 13 Jul 2022 12:33:09 -0600 Subject: [PATCH] Update zm_monitor.cpp --- src/zm_monitor.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index 8582c4f24..34e9a3975 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -1714,9 +1714,7 @@ bool Monitor::Poll() { Debug(1, "Got Good Response! %i", result); for (auto msg : tev__PullMessagesResponse.wsnt__NotificationMessage) { if (msg->Topic->__any.text != NULL && - // need to modify this for something more standardized - // std::strstr(msg->Topic->__any.text, "MotionAlarm") && org. line - std::strstr(msg->Topic->__any.text, "CellMotionDetector") && + std::strstr(msg->Topic->__any.text, "MotionAlarm") && msg->Message.__any.elts != NULL && msg->Message.__any.elts->next != NULL && msg->Message.__any.elts->next->elts != NULL &&