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

@ -8,20 +8,10 @@ if [ "$1" = "c" ]; then
echo "Mode cycling"
y=$(last reboot | grep ^reboot | wc -l)
echo $y
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
echo $(($y % 4))
fi
if [ "$1" = "a" ]; then
if [[ ("$1" = "a" ) || (("$1" = "c") && ("$(($y %4)))) ]]; then
echo "Mode is continuous AFSK"
/home/pi/CubeSatSim/radioafsk afsk
elif [ "$1" = "b" ]; then

Loading…
Cancel
Save

Powered by TurnKey Linux.