From 1301bebc09423aa7aab70511ba2206015a711c9c Mon Sep 17 00:00:00 2001 From: Taylor Yu Date: Sun, 28 Aug 2022 11:17:55 -0500 Subject: [PATCH] update for review comments Signed-off-by: Taylor Yu --- bin/focus-send | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/focus-send b/bin/focus-send index a733f8fa..0eb49f5d 100755 --- a/bin/focus-send +++ b/bin/focus-send @@ -46,7 +46,7 @@ exec < "${DEVICE}" # shellcheck disable=SC2086 # intentional word splitting stty $STTY_ARGS -wait_dot () { +read_reply () { while read -r line; do if [ "${line}" = "." ]; then break @@ -58,6 +58,6 @@ wait_dot () { # Flush any invalid commands out of input buffer. # This could happen after a failed upload. echo ' ' > "${DEVICE}" -wait_dot +read_reply > /dev/null echo "$@" >"${DEVICE}" -wait_dot +read_reply