use correct tty device for serial

old-commit-hash: 5cd8bef921
This commit is contained in:
Robbe Derks 2022-06-24 12:37:30 +02:00
parent cdf8688f96
commit 39661f9291
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
#!/bin/bash
while true; do
if ls /dev/ttyUSB* 2> /dev/null; then
sudo screen /dev/ttyUSB* 115200
if ls /dev/serial/by-id/usb-FTDI_FT230X* 2> /dev/null; then
sudo screen /dev/serial/by-id/usb-FTDI_FT230X* 115200
fi
sleep 0.005
done