Skip to content

Commit

Permalink
Merge pull request #339 from alanbjohnston/beta
Browse files Browse the repository at this point in the history
remove auto rpitx restart
  • Loading branch information
alanbjohnston authored Sep 21, 2024
2 parents 871d13a + de0e5d8 commit b5947d1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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(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;
Expand All @@ -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(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)
Expand Down

0 comments on commit b5947d1

Please sign in to comment.