From 2a38e8665e03954a39fa996c463f5e512de7b185 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 2 Mar 2024 12:18:36 -0500 Subject: [PATCH] Update rpitx.py string only in system call --- rpitx.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpitx.py b/rpitx.py index b887d2bb..68f49bd4 100644 --- a/rpitx.py +++ b/rpitx.py @@ -529,7 +529,8 @@ if __name__ == "__main__": print("done for") for chan in range(7): print("for loop") - system("gen_packets -M 20 -o /home/pi/CubeSatSim/morse.wav /home/pi/CubeSatSim/cw" + ch + ".txt -r 48000 > /dev/null 2>&1") + command = "gen_packets -M 20 -o /home/pi/CubeSatSim/morse.wav /home/pi/CubeSatSim/cw" + ch + ".txt -r 48000 > /dev/null 2>&1" + system(command) print("for loop1") ch = ch + 1 print("for loop2")