Update main.c just restart rpitx, don't stop

beta-v1.3.1-delay
Alan Johnston 2 years ago committed by GitHub
parent 9798246004
commit 077137e471
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -49,7 +49,8 @@ int main(int argc, char * argv[]) {
program_radio(); 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); pclose(rpitx_stop);
FILE * file_deletes = popen("sudo rm /home/pi/CubeSatSim/ready /home/pi/CubeSatSim/cwready > /dev/null", "r"); 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"); Serial.println("HAB mode enabled - balloon icon and BAT only telem and no low voltage shutdown");
#endif #endif
FILE * rpitx_restart = popen("sudo systemctl restart rpitx", "r"); // FILE * rpitx_restart = popen("sudo systemctl restart rpitx", "r");
pclose(rpitx_restart); // pclose(rpitx_restart);
mode = FSK; mode = FSK;
frameCnt = 1; frameCnt = 1;

Loading…
Cancel
Save

Powered by TurnKey Linux.