From 28c335c9852eed570c78d61c0ee630aab04f485b Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 17 Mar 2026 19:10:14 -0400 Subject: [PATCH] fix missing fi --- pacsatsim.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pacsatsim.sh b/pacsatsim.sh index 86836f78..20bb50f1 100755 --- a/pacsatsim.sh +++ b/pacsatsim.sh @@ -39,14 +39,16 @@ if [[ $(arecord -l | grep "USB Audio Device") ]] ; then else echo "No USB Sound Card detected" soundcard=0 +fi gpio -g mode 7 up -if [[ $(gpio -g read 7 | grep 0) ]]; then +if [[ $(gpio -g read 7 | grep 0) ]] ; then echo "TXC is present" txc=1 else: echo "TXC not present" txc=0 +fi timeout 1 rtl_test &> out.txt if [[ $(grep "No supported" out.txt) ]] ; then