From 9a15277588cf42767347a02adaa90ae1cad66958 Mon Sep 17 00:00:00 2001 From: th33xitus Date: Sun, 29 May 2022 00:37:28 +0200 Subject: [PATCH] fix(flash_klipper.sh): regex for listing possible UART devices Signed-off-by: Dominik Willner th33xitus@gmail.com --- scripts/flash_klipper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/flash_klipper.sh b/scripts/flash_klipper.sh index e769c41..233ea8b 100644 --- a/scripts/flash_klipper.sh +++ b/scripts/flash_klipper.sh @@ -322,7 +322,7 @@ function get_usb_id() { function get_uart_id() { unset mcu_list sleep 1 - mcus=$(find /dev -maxdepth 1 -regextype posix-extended -regex "^\/dev\/tty(AMA|ACM|S)[0-9]+$" 2>/dev/null) + mcus=$(find /dev -maxdepth 1 -regextype posix-extended -regex "^\/dev\/tty(AMA0|S0)$" 2>/dev/null) for mcu in ${mcus}; do mcu_list+=("${mcu}")