Update main.c restart rpitx if tcp connection refused

beta-ft
Alan Johnston 1 year ago committed by GitHub
parent 4bb23e2582
commit 2a7e8cffd3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1830,7 +1830,9 @@ void get_tlm_fox() {
printf("\nConnection Failed \n"); printf("\nConnection Failed \n");
printf("Error: %s \n", strerror(errno)); printf("Error: %s \n", strerror(errno));
error = 1; error = 1;
// sleep(1.0); // sleep if socket connection refused FILE * rpitx_restartf = popen("sudo systemctl restart rpitx", "r");
pclose(rpitx_restartf);
sleep(5.0); // sleep if socket connection refused
} }
} }
if (error == 1) if (error == 1)

Loading…
Cancel
Save

Powered by TurnKey Linux.