added pcdu with trait implementation of power switcher

This commit is contained in:
lkoester 2023-02-07 16:44:01 +01:00
parent 27790242b0
commit cc1a0e09e4
2 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ def make_target_id(target_id: int) -> bytes:
byte_string = bytearray(struct.pack("!I", target_id))
return byte_string
def read_addressable_id(data: bytes) -> Tuple[int, int]:
def read_addressable_id(data: bytes) -> tuple[int, int]:
target_id = struct.unpack("!I", data[0:4])[0]
set_id = struct.unpack("!I", data[4:8])[0]
return (target_id, set_id)

0
src/pcdu.rs Normal file
View File