fix(flash_klipper.sh): regex for listing possible UART devices

Signed-off-by: Dominik Willner th33xitus@gmail.com
This commit is contained in:
th33xitus
2022-05-29 00:37:28 +02:00
parent 52e7895c39
commit 9a15277588

View File

@@ -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}")