This commit is contained in:
yohan 2024-06-08 07:50:27 +02:00
parent e04caecd76
commit f192651650

View File

@ -36,7 +36,7 @@ else:
find_ttyUSB_output = subprocess.check_output(["./find_ttyUSB.sh"]) find_ttyUSB_output = subprocess.check_output(["./find_ttyUSB.sh"])
device = None 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: if "FTDI_FT232R_USB_UART_A50285BI" in line:
device = line.split(" ")[0] device = line.split(" ")[0]
break break