From 8a6fc4b0f06c7c0d68f36f13392716558e94a64f Mon Sep 17 00:00:00 2001 From: June Tate-Gans Date: Sun, 2 May 2021 23:47:25 -0500 Subject: [PATCH] g13gui: manager: Ensure both the header and buffer are bytes --- g13gui/g13gui/g13/manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/g13gui/g13gui/g13/manager.py b/g13gui/g13gui/g13/manager.py index 02a30e2..d88fd0a 100644 --- a/g13gui/g13gui/g13/manager.py +++ b/g13gui/g13gui/g13/manager.py @@ -181,7 +181,8 @@ class Manager(threading.Thread): header[0] = 0x03 self._device.write( - usb.util.CTRL_OUT | G13Endpoints.LCD.value, bytes(header) + buffer) + usb.util.CTRL_OUT | G13Endpoints.LCD.value, + bytes(header) + bytes(buffer)) def _processCommands(self): while True: