Update demo.sh

pull/60/head
alanbjohnston 5 years ago committed by GitHub
parent 828f7b0877
commit 4d1fa7f7a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -9,19 +9,9 @@ if [ "$1" = "c" ]; then
y=$(last reboot | grep ^reboot | wc -l) y=$(last reboot | grep ^reboot | wc -l)
echo $y echo $y
echo $(($y % 4)) echo $(($y % 4))
if [ $(($y % 4)) = 0 ]; then
1= "a"
elif [ $(($y % 4)) = 1 ]; then
1="b"
elif [ $(($y % 4)) = 2 ]; then
1="s"
else
1="f"
fi
fi fi
if [ "$1" = "a" ]; then if [[ ("$1" = "a" ) || (("$1" = "c") && ("$(($y %4)))) ]]; then
echo "Mode is continuous AFSK" echo "Mode is continuous AFSK"
/home/pi/CubeSatSim/radioafsk afsk /home/pi/CubeSatSim/radioafsk afsk
elif [ "$1" = "b" ]; then elif [ "$1" = "b" ]; then

Loading…
Cancel
Save

Powered by TurnKey Linux.