Skip to content

Commit

Permalink
stop when camera is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
robotastic committed Jan 18, 2025
1 parent 589a498 commit 8e92a0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions axis-ptz-controller/axis_ptz_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,8 @@ def _config_callback(
if "use_camera" in config:
self.use_camera = config["use_camera"]
self.camera.use_camera = config["use_camera"]
if not config["use_camera"]:
self.camera.stop_move()
if "include_age" in config:
self.include_age = config[
"include_age"
Expand Down

0 comments on commit 8e92a0a

Please sign in to comment.