We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2909639 commit f2006faCopy full SHA for f2006fa
reolinkapi/mixins/zoom.py
@@ -38,7 +38,7 @@ def get_auto_focus(self) -> Dict:
38
39
def set_auto_focus(self, disable: bool) -> Dict:
40
"""This command sets the auto focus status."""
41
- data = [{"cmd": "SetAutoFocus", "action": 0, "param": {"channel": 0, "disable": disable}}]
+ data = [{"cmd": "SetAutoFocus", "action": 0, "param": {"AutoFocus": {"channel": 0, "disable": 1 if disable else 0}}}]
42
return self._execute_command('SetAutoFocus', data)
43
44
def start_zooming_in(self, speed: float = 60) -> Dict:
0 commit comments