~martijnbraam/pyatem

793d8e534f2e68d5b584632f3c09d87be3c9e993 — Martijn Braam 1 year, 6 months ago 8721b67
pyatem: fix offset for datatype 0x80
1 files changed, 2 insertions(+), 2 deletions(-)

M pyatem/command.py
M pyatem/command.py => pyatem/command.py +2 -2
@@ 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)