From eb0e6a7232b72ec9e360d7899d183a61d653fbfd Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 18 Jan 2026 12:51:39 -0500 Subject: [PATCH] Update config don't do -A unless in FM mode --- config | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config b/config index 4036afb4..70c80215 100755 --- a/config +++ b/config @@ -1221,6 +1221,12 @@ elif [ "$1" = "-A" ]; then echo "$value" > /dev/null set -- $value + if [ "$1" == "f" ] || [ "$1" == "b" ] || [ "$1" == "e" ] || [ "$1" == "j" ] ; then + echo "The CubeSatSim/config -A command can only be run in APRS, SSTV, CW, or Transmit Commands modes." + echo "Switch to one of these modes (a, s, m, or n) then re-run this command." + exit + fi + if [ "$1" != "n" ]; then sudo systemctl stop cubesatsim