From ec2634537d6467aab4c9c6c4feb59b1266bf9d15 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Mon, 9 Oct 2023 18:58:39 -0500 Subject: [PATCH] don't run motion estimation when calling preset --- frigate/ptz/onvif.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/frigate/ptz/onvif.py b/frigate/ptz/onvif.py index 2da9ceb8d..de85972ef 100644 --- a/frigate/ptz/onvif.py +++ b/frigate/ptz/onvif.py @@ -350,12 +350,7 @@ class OnvifController: self.cams[camera_name]["active"] = True self.ptz_metrics[camera_name]["ptz_stopped"].clear() - logger.debug( - f"{camera_name} PTZ start time: {self.ptz_metrics[camera_name]['ptz_frame_time'].value}" - ) - self.ptz_metrics[camera_name]["ptz_start_time"].value = self.ptz_metrics[ - camera_name - ]["ptz_frame_time"].value + self.ptz_metrics[camera_name]["ptz_start_time"].value = 0 self.ptz_metrics[camera_name]["ptz_stop_time"].value = 0 move_request = self.cams[camera_name]["move_request"] onvif: ONVIFCamera = self.cams[camera_name]["onvif"]