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