power_handler #1

Merged
lkoester merged 4 commits from power_handler into master 2023-02-09 15:40:04 +01:00
2 changed files with 1 additions and 1 deletions
Showing only changes of commit cc1a0e09e4 - Show all commits

View File

@ -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
View File