From 9cf6c8dc12af140aa0783b7af545173e4cc405d4 Mon Sep 17 00:00:00 2001 From: Robbe Derks Date: Fri, 24 Jun 2022 12:37:30 +0200 Subject: [PATCH] use correct tty device for serial --- tools/serial/connect.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/serial/connect.sh b/tools/serial/connect.sh index 037152019fb6cf..a073310b0a8a43 100755 --- a/tools/serial/connect.sh +++ b/tools/serial/connect.sh @@ -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