Fix bug.
This commit is contained in:
parent
e04caecd76
commit
f192651650
2
relay.py
2
relay.py
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user