From 793d8e534f2e68d5b584632f3c09d87be3c9e993 Mon Sep 17 00:00:00 2001 From: Martijn Braam Date: Tue, 9 Nov 2021 17:39:35 +0100 Subject: [PATCH] pyatem: fix offset for datatype 0x80 --- pyatem/command.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyatem/command.py b/pyatem/command.py index ccf445e..4a87d21 100644 --- a/pyatem/command.py +++ b/pyatem/command.py @@ -2056,13 +2056,13 @@ class CameraControlCommand(Command): data = struct.pack('>5B', self.destination, self.category, self.parameter, self.relative, self.datatype) elements = [0] * 11 countoffset = { - 0: 0, + 0: 2, 1: 2, 2: 2, 3: 4, 4: 2, 5: 2, - 128: 2 + 128: 4 } elements[countoffset[self.datatype]] = count print(elements) -- 2.34.2