From 5d353f4134a80e97381ef0587f8c558adca3c43f Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Mon, 5 Apr 2021 22:15:26 +0100 Subject: [PATCH] Fix logging. --- controllers/mattchbox_usb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/mattchbox_usb.py b/controllers/mattchbox_usb.py index 512648c..23ac77b 100644 --- a/controllers/mattchbox_usb.py +++ b/controllers/mattchbox_usb.py @@ -64,7 +64,7 @@ class MattchBox(Controller): if self.ser and self.ser.is_open and self.port: # If self.port is changing (via state_handler), we should stop. try: line = int.from_bytes(self.ser.read(1), "big") # Endianness doesn't matter for 1 byte. - self.logger.log.info("Received from controller:", line) + self.logger.log.info("Received from controller: " + str(line)) if (line == 255): self.ser.write(b'\xff') # Send 255 back. elif (line in [1,3,5]):