Update main.c put back in other start transmit

master-psag-fm-only-fsk
Alan Johnston 2 weeks ago committed by GitHub
parent f48654845e
commit 803cdaa91d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -150,8 +150,8 @@ int main(int argc, char * argv[]) {
pi_zero_2_offset = 500; pi_zero_2_offset = 500;
} }
if (uptime_sec < 30.0) { if (uptime_sec < 30.0) {
// FILE * transmit_stop = popen("sudo systemctl start transmit", "r"); FILE * transmit_stop = popen("sudo systemctl start transmit", "r");
// pclose(transmit_stop); pclose(transmit_stop);
fprintf(stderr,"Sleep 10 sec\n"); fprintf(stderr,"Sleep 10 sec\n");
sleep(10); sleep(10);
} }
@ -2986,8 +2986,8 @@ void socket_send(int length) {
// ; //transmitStatus = -1; // ; //transmitStatus = -1;
if (error_count++ > 5) { if (error_count++ > 5) {
printf("Restarting transmit\n"); printf("Restarting transmit\n");
// FILE * transmit_restartf = popen("sudo systemctl restart transmit", "r"); FILE * transmit_restartf = popen("sudo systemctl restart transmit", "r");
// pclose(transmit_restartf); pclose(transmit_restartf);
sleep(10); // was 5 // sleep if socket connection refused sleep(10); // was 5 // sleep if socket connection refused
} }
} }

Loading…
Cancel
Save

Powered by TurnKey Linux.