From de0e5d8c54a4a7af6d21d0c0f96c7883da48e677 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 16 Sep 2024 12:52:20 -0400 Subject: [PATCH] Update main.c don't restart rpitx --- main.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main.c b/main.c index 4049ba6f..a4822cda 100644 --- a/main.c +++ b/main.c @@ -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)