Skip to content

Commit

Permalink
WIP with real panel
Browse files Browse the repository at this point in the history
  • Loading branch information
jantman committed Oct 22, 2023
1 parent b99a515 commit f895c38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py_vista_turbo_serial/communicator.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def communicate(self) -> Generator[MessagePacket, None, None]:
if self.outgoing:
msg = self.outgoing.pop(0)
logger.info('Sending message: %s', msg)
self.serial.write((msg + '\r\n').encode('utf-8'))
self.serial.write('{!r}'.format(msg + '\r\n'))
# this might be better with select(), but let's try this...
while True:
# @TODO handle exception on timeout
Expand Down

0 comments on commit f895c38

Please sign in to comment.