From 33c3ac8fd312bd28226db169c958d3478139e035 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Mon, 20 Jul 2020 20:52:51 -0400 Subject: [PATCH] cleaned up with restart --- demo.sh | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/demo.sh b/demo.sh index 6780d8e5..7a29a981 100755 --- a/demo.sh +++ b/demo.sh @@ -2,19 +2,15 @@ echo -e "\nDemo of CubeSatSim at 434.9 MHz\n" -sudo systemctl stop rpitx -sudo systemctl start rpitx +sudo systemctl restart rpitx - echo -e "\n Continuous Mode\n\n" -# /home/pi/CubeSatSim/radioafsk f - - if [ "$1" = "a" ]; then - echo "Mode is continuous AFSK" - /home/pi/CubeSatSim/radioafsk afsk - elif [ "$1" = "b" ]; then - echo "Mode is continuous BPSK" - /home/pi/CubeSatSim/radioafsk bpsk - else - echo "Mode is continuous FSK" - /home/pi/CubeSatSim/radioafsk fsk - fi +if [ "$1" = "a" ]; then + echo "Mode is continuous AFSK" + /home/pi/CubeSatSim/radioafsk afsk +elif [ "$1" = "b" ]; then + echo "Mode is continuous BPSK" + /home/pi/CubeSatSim/radioafsk bpsk +else + echo "Mode is continuous FSK" + /home/pi/CubeSatSim/radioafsk fsk +fi