Skip to content

Commit

Permalink
Return 3 bytes assembly number instead of 2 bytes (#34)
Browse files Browse the repository at this point in the history
Co-authored-by: Maarten Meijer <maarten.meijer@demcon.com>
  • Loading branch information
MaartenMJR and Maarten Meijer authored May 18, 2023
1 parent 1c25147 commit d70f8ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hart_protocol/_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def parse(response: bytes) -> MutableMapping[str, Union[int, bytes, str, float]]
out["private_label"] = private_label
elif command in [16]:
out["command_name"] = "read_final_assembly_number"
out["final_assembly_no"] = int.from_bytes(data[0:2], "big")
out["final_assembly_no"] = int.from_bytes(data[0:3], "big")
elif command in [17]:
out["command_name"] = "write_message"
out["message"] = data[0:24]
Expand Down

0 comments on commit d70f8ba

Please sign in to comment.