|
|
|
@ -1822,7 +1822,7 @@ void get_tlm_fox() {
|
|
|
|
error = 1;
|
|
|
|
error = 1;
|
|
|
|
FILE * rpitx_restartf2 = popen("sudo systemctl restart rpitx", "r");
|
|
|
|
FILE * rpitx_restartf2 = popen("sudo systemctl restart rpitx", "r");
|
|
|
|
pclose(rpitx_restartf2);
|
|
|
|
pclose(rpitx_restartf2);
|
|
|
|
sleep(5); // sleep if socket connection refused
|
|
|
|
sleep(10); // was 5 // sleep if socket connection refused
|
|
|
|
|
|
|
|
|
|
|
|
// try again
|
|
|
|
// try again
|
|
|
|
error = 0;
|
|
|
|
error = 0;
|
|
|
|
@ -1848,7 +1848,7 @@ void get_tlm_fox() {
|
|
|
|
error = 1;
|
|
|
|
error = 1;
|
|
|
|
FILE * rpitx_restartf = popen("sudo systemctl restart rpitx", "r");
|
|
|
|
FILE * rpitx_restartf = popen("sudo systemctl restart rpitx", "r");
|
|
|
|
pclose(rpitx_restartf);
|
|
|
|
pclose(rpitx_restartf);
|
|
|
|
sleep(5); // sleep if socket connection refused
|
|
|
|
sleep(10); // was 5 // sleep if socket connection refused
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (error == 1)
|
|
|
|
if (error == 1)
|
|
|
|
|