diff --git a/groundstation/packet.sh b/groundstation/packet.sh index 10b6a17a..8f20bbd3 100755 --- a/groundstation/packet.sh +++ b/groundstation/packet.sh @@ -159,8 +159,10 @@ echo echo -e "Auto decoding APRS packets on $frequency Hz" - timeout 1 rtl_test &> out.txt + timeout 2 rtl_test &> out.txt + sleep 1 sudo pkill -9 rtl_test + sleep 1 if [[ $(grep "No supported" out.txt) ]] || [[ $(grep "Failed to open" out.txt) ]] ; then echo "No RTL-SDR detected. Trying FM TXC" @@ -174,6 +176,8 @@ echo if [[ $(arecord -l | grep "USB Audio Device") ]] ; then + echo "USB Sound Card is present" + gpio -g mode 20 out # set PTT high gpio -g write 20 1 gpio -g mode 21 out # set PD high