fix motion logic

This commit is contained in:
Josh Hawkins 2023-06-30 12:38:44 -05:00
parent db9a408edf
commit 1a78230eae

View File

@ -769,7 +769,7 @@ def process_frames(
# look for motion if enabled # look for motion if enabled
motion_boxes = ( motion_boxes = (
motion_detector.detect(frame) motion_detector.detect(frame)
if motion_enabled.value or ptz_moving.value if motion_enabled.value and not ptz_moving.value
else [] else []
) )