Update main.c don't restart rpitx

pull/339/head
Alan Johnston 1 year ago committed by GitHub
parent f2be5d3144
commit de0e5d8c54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1820,9 +1820,9 @@ void get_tlm_fox() {
printf("\nConnection Failed \n");
printf("Error: %s restarting rpitx\n", strerror(errno));
error = 1;
FILE * rpitx_restartf2 = popen("sudo systemctl restart rpitx", "r");
pclose(rpitx_restartf2);
sleep(10); // was 5 // sleep if socket connection refused
// FILE * rpitx_restartf2 = popen("sudo systemctl restart rpitx", "r");
// pclose(rpitx_restartf2);
// sleep(10); // was 5 // sleep if socket connection refused
// try again
error = 0;
@ -1846,9 +1846,9 @@ void get_tlm_fox() {
printf("\nConnection Failed \n");
printf("Error: %s restarting rpitx\n", strerror(errno));
error = 1;
FILE * rpitx_restartf = popen("sudo systemctl restart rpitx", "r");
pclose(rpitx_restartf);
sleep(10); // was 5 // sleep if socket connection refused
// FILE * rpitx_restartf = popen("sudo systemctl restart rpitx", "r");
// pclose(rpitx_restartf);
// sleep(10); // was 5 // sleep if socket connection refused
}
}
if (error == 1)

Loading…
Cancel
Save

Powered by TurnKey Linux.