Sfoglia il codice sorgente

clarify bounded UART HEX debug reader

高宇轩 3 mesi fa
parent
commit
23fecf8914
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      send_uart_hex_debug.sh

+ 2 - 2
send_uart_hex_debug.sh

@@ -8,8 +8,8 @@ trap 'rm -f "$RX"' EXIT
 
 stty -F "$DEV" 921600 cs8 -cstopb -parenb raw -echo -ixon -ixoff -crtscts
 timeout --foreground 5 cat "$DEV" | xxd -g1 -c256 > "$RX" &
-RX_PID=$!
+RX_READER=$!
 sleep 0.05
 printf '%s' "$HEX" | tr -d '[:space:]' | xxd -r -p > "$DEV"
-wait "$RX_PID" || true
+wait "$RX_READER" || true
 cat "$RX"