From a961c8d77f0e1b396f20cea7d934eb590308e851 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Fri, 20 Oct 2023 11:16:27 -0500 Subject: [PATCH] small zoom logic fix --- frigate/ptz/autotrack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/ptz/autotrack.py b/frigate/ptz/autotrack.py index 2c91b0157..4d2ffb2f2 100644 --- a/frigate/ptz/autotrack.py +++ b/frigate/ptz/autotrack.py @@ -1049,7 +1049,7 @@ class PtzAutoTracker: zoom = -(1 - zoom) if zoom > 0 else -(zoom + 1) if result: # zoom in - zoom = 1 - zoom + zoom = 1 - zoom if zoom > 0 else (zoom + 1) logger.debug(f"{camera}: Zooming: {result} Zoom amount: {zoom}")