Update zm_monitor.cpp
parent
213d57ee03
commit
ea0ad373fe
|
@ -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 &&
|
||||
|
|
Loading…
Reference in New Issue