mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-28 16:27:07 +03:00
don't seed relative move translation from a status without position
This commit is contained in:
@@ -373,7 +373,7 @@ class OnvifController:
|
||||
]["URI"]
|
||||
|
||||
if rel_move_request.Translation is None:
|
||||
if status is not None:
|
||||
if status is not None and status.Position is not None:
|
||||
# seed from current position
|
||||
rel_move_request.Translation = status.Position
|
||||
rel_move_request.Translation.PanTilt.space = fov_uri
|
||||
|
||||
Reference in New Issue
Block a user