From d5440172be5fcabfeba1a82e05e14bc6d3d94337 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 16 Jul 2026 17:49:39 -0400 Subject: [PATCH] Update config reboot if turning Doppler off in CW mode --- config | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/config b/config index 4d8c580f..4c9e188b 100755 --- a/config +++ b/config @@ -2011,7 +2011,15 @@ elif [ "$1" = "-K" ]; then echo $1 $2 $3 $4 $5 $6 $7 $8 $9 ${10} ${11} ${12} ${13} $doppler > /home/pi/CubeSatSim/sim.cfg echo - restart=1 + value=`cat /home/pi/CubeSatSim/.mode` + echo "$value" > /dev/null + set -- $value + + if [[ ( "$sim" == "y" || "$sim" == "yes" ) && ( "$1" == "m" ) && ( "$doppler" == "no" ) ]] ; then + reboot=1 + else + restart=1 + fi elif [ "$1" = "-h" ]; then