From f192651650ee0ece3bee8c0aeede5a996c3fa36a Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Sat, 8 Jun 2024 07:50:27 +0200 Subject: [PATCH] Fix bug. --- relay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relay.py b/relay.py index 4b36627..93119f9 100755 --- a/relay.py +++ b/relay.py @@ -36,7 +36,7 @@ else: find_ttyUSB_output = subprocess.check_output(["./find_ttyUSB.sh"]) device = None -for line in find_ttyUSB_output.split("\n"): +for line in find_ttyUSB_output.decode('utf-8').split("\n"): if "FTDI_FT232R_USB_UART_A50285BI" in line: device = line.split(" ")[0] break