diff --git a/demo.sh b/demo.sh index 65935e0b..49ff5987 100755 --- a/demo.sh +++ b/demo.sh @@ -11,7 +11,7 @@ if [ "$1" = "c" ]; then echo $(($y % 4)) fi -if [[ ("$1" = "a" ) || (("$1" = "c") && ("$(($y %4)))) ]]; then +if [[ ("$1" = "a" ) || (("$1" = "c") && ("$(($y %4))" = 0)) ]]; then echo "Mode is continuous AFSK" /home/pi/CubeSatSim/radioafsk afsk elif [ "$1" = "b" ]; then