PLOC SUPV extensions
All checks were successful
EIVE/-/pipeline/head This commit looks good

This commit is contained in:
2023-11-08 18:18:40 +01:00
parent 99c6c8bbd0
commit c4bd355146
4 changed files with 15 additions and 9 deletions

View File

@ -676,10 +676,10 @@ def pack_set_gpio_cmd(object_id: bytes) -> bytearray:
port = int(input("Specify port: 0x"), 16)
pin = int(input("Specify pin: 0x"), 16)
val = int(input("Specify val: 0x"), 16)
command = object_id + struct.pack("!I", SupvActionId.SET_GPIO)
command = command + struct.pack("!B", port)
command = command + struct.pack("!B", pin)
command = command + struct.pack("!B", val)
command = bytearray(object_id + struct.pack("!I", SupvActionId.SET_GPIO))
command.append(port)
command.append(pin)
command.append(val)
return bytearray(command)