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