added pcdu with trait implementation of power switcher
This commit is contained in:
parent
27790242b0
commit
cc1a0e09e4
@ -218,7 +218,7 @@ def make_target_id(target_id: int) -> bytes:
|
|||||||
byte_string = bytearray(struct.pack("!I", target_id))
|
byte_string = bytearray(struct.pack("!I", target_id))
|
||||||
return byte_string
|
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]
|
target_id = struct.unpack("!I", data[0:4])[0]
|
||||||
set_id = struct.unpack("!I", data[4:8])[0]
|
set_id = struct.unpack("!I", data[4:8])[0]
|
||||||
return (target_id, set_id)
|
return (target_id, set_id)
|
||||||
|
0
src/pcdu.rs
Normal file
0
src/pcdu.rs
Normal file
Loading…
x
Reference in New Issue
Block a user