Skip to content

Commit

Permalink
fix: 🐛 Add 2B pad to ACNET_DISCONNECT.
Browse files Browse the repository at this point in the history
I think there's likely a more elegant solution to this.
  • Loading branch information
beauremus committed Sep 6, 2023
1 parent a399cdb commit c266383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acsys/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def connection_lost(self, exc):
# Send an error to all pending ACKs. The '\xde\x01' value is
# ACNET_DISCONNECTED.

msg = b'\x00\x00\xde\x01'
msg = b'\x00\x00\x00\x00\xde\x01'
while not self.qCmd.empty():
self.qCmd.get_nowait().set_result(msg)

Expand Down

0 comments on commit c266383

Please sign in to comment.