Skip to content
Browse files

improve lisy output

  • Loading branch information...
jabdoa2 committed Aug 4, 2019
1 parent 00af98a commit b28c83fdcf860a3da90e3791d6ae82e1211db1b2
Showing with 2 additions and 2 deletions.
  1. +2 −2 mpf/platforms/lisy/
@@ -672,7 +672,7 @@ def send_byte(self, cmd: int, byte: bytes = None):

cmd_str = bytes([cmd])
cmd_str += byte
self.log.debug("Sending %s %s", cmd, byte)
self.log.debug("Sending %s %s", cmd, "".join(" 0x%02x" % b for b in byte))

@@ -686,7 +686,7 @@ def send_string(self, cmd: int, string: str):
"""Send a command with null terminated string."""
assert self._writer is not None

self.log.debug("Sending %s %s", cmd, string)
self.log.debug("Sending %s %s (%s)", cmd, string, "".join(" 0x%02x" % ord(b) for b in string))
self._writer.write(bytes([cmd]) + string.encode() + bytes([0]))


0 comments on commit b28c83f

Please sign in to comment.
You can’t perform that action at this time.