restart rpitx at the start

pull/127/head
alanbjohnston 5 years ago committed by GitHub
parent 401c7f4147
commit 55629b58df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -23,6 +23,9 @@
int main(int argc, char * argv[]) {
FILE * rpitx_restart = popen("sudo systemctl restart rpitx", "r");
pclose(rpitx_restart);
mode = FSK;
frameCnt = 1;
@ -81,9 +84,6 @@ int main(int argc, char * argv[]) {
}
}
FILE * rpitx_restart = popen("sudo systemctl restart rpitx", "r");
pclose(rpitx_restart);
// Open configuration file with callsign and reset count
FILE * config_file = fopen("/home/pi/CubeSatSim/sim.cfg", "r");
if (config_file == NULL) {

Loading…
Cancel
Save

Powered by TurnKey Linux.