use correct tty device for serial

This commit is contained in:
Robbe Derks 2022-06-24 12:37:30 +02:00
parent 3b495fcb0b
commit 5cd8bef921
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