From bbcf207420e99a211407c378a679bca62e027cb6 Mon Sep 17 00:00:00 2001 From: David Stewart Date: Thu, 11 Dec 2025 16:43:20 -0800 Subject: [PATCH] Update et-th-d74 --- overlay/opt/emcomm-tools/bin/et-th-d74 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overlay/opt/emcomm-tools/bin/et-th-d74 b/overlay/opt/emcomm-tools/bin/et-th-d74 index 034db0c..d868d9f 100755 --- a/overlay/opt/emcomm-tools/bin/et-th-d74 +++ b/overlay/opt/emcomm-tools/bin/et-th-d74 @@ -148,7 +148,7 @@ case $1 in p|pair) MAC=$(cat ${ACTIVE_RADIO} | jq -e -r .bluetooth.mac) - if [ $? -eq 0 ]; then + if [[ "{$MAC}" != "" ]]; then PAIR_STATUS=$(bluetoothctl info "${MAC}" | grep "Paired:" | awk '{print $2}') if [ "${PAIR_STATUS}" == "yes" ]; then echo "Device with MAC ${MAC} is already paired."