From 077137e471ecd7caa9b52f1b3fe820ccc717ce7c Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 4 Oct 2023 21:55:57 -0400 Subject: [PATCH] Update main.c just restart rpitx, don't stop --- main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index e9a0f84b..0aa42222 100644 --- a/main.c +++ b/main.c @@ -49,7 +49,8 @@ int main(int argc, char * argv[]) { program_radio(); - FILE * rpitx_stop = popen("sudo systemctl stop rpitx", "r"); +// FILE * rpitx_stop = popen("sudo systemctl stop rpitx", "r"); + FILE * rpitx_stop = popen("sudo systemctl restart rpitx", "r"); pclose(rpitx_stop); FILE * file_deletes = popen("sudo rm /home/pi/CubeSatSim/ready /home/pi/CubeSatSim/cwready > /dev/null", "r"); @@ -70,8 +71,8 @@ int main(int argc, char * argv[]) { Serial.println("HAB mode enabled - balloon icon and BAT only telem and no low voltage shutdown"); #endif - FILE * rpitx_restart = popen("sudo systemctl restart rpitx", "r"); - pclose(rpitx_restart); +// FILE * rpitx_restart = popen("sudo systemctl restart rpitx", "r"); +// pclose(rpitx_restart); mode = FSK; frameCnt = 1;