Skip to content

Commit

Permalink
[DEBUG] don't send optional GetState commands to Anafi 1 drones
Browse files Browse the repository at this point in the history
  • Loading branch information
ndessart committed Aug 29, 2023
1 parent 54112c4 commit 9eca6e8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/olympe/arsdkng/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,12 @@ async def _on_connected(self):
all_states_settings_commands = [
common.Common.AllStates(), common.Settings.AllSettings()
]
if self._device_type != od.ARSDK_DEVICE_TYPE_ANAFI4K:
if self._device_type not in (
od.ARSDK_DEVICE_TYPE_ANAFI4K,
od.ARSDK_DEVICE_TYPE_ANAFI_THERMAL,
od.ARSDK_DEVICE_TYPE_ANAFI_UA,
od.ARSDK_DEVICE_TYPE_ANAFI_USA
):
get_state_commands = [
antiflicker.Command.GetState(include_default_capabilities=True),
camera2.Command.GetState(include_default_capabilities=True),
Expand Down

0 comments on commit 9eca6e8

Please sign in to comment.