Skip to content

Commit

Permalink
carriage return and newline appended to commands before execution
Browse files Browse the repository at this point in the history
  • Loading branch information
eredden committed Jul 9, 2024
1 parent 651e66f commit 6d431a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/veeder_root_tls_socket_library/socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ def execute(self,
# Setting up foundational variables.
socket = self.socket
soh = b"\x01"
end = b"\r\n" # Fixes an error when executing command i72E.

byte_command = soh + bytes(command, "utf-8")
byte_command = soh + bytes(command, "utf-8") + end
is_display = command[0].isupper()

# Send command and repeatedly receive data in chunks until ETX is found.
Expand Down

0 comments on commit 6d431a5

Please sign in to comment.