From cc5350ee10c650bc92d4a4f6ca92ddc85360b289 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 8 Nov 2020 10:58:08 -0500 Subject: [PATCH] Update demo.sh --- demo.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/demo.sh b/demo.sh index f92a163e..f5f10742 100755 --- a/demo.sh +++ b/demo.sh @@ -20,8 +20,9 @@ else echo "Mode cycling" y=$(last reboot | grep ^reboot | wc -l) echo $y + echo $(($y % 4)) - if [ "$y" % 4 = "0" ]; then + if [ $(($y % 4)) = "0" ]; then echo "Mode is continuous AFSK" /home/pi/CubeSatSim/radioafsk afsk elif [ "$1" = "b" ]; then