add 5 seconds of random sleep

sr-frs-aprs-payload-minute
alanbjohnston 3 years ago committed by GitHub
parent a6ac1993e1
commit 4571c4fab9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -824,6 +824,7 @@ int main(int argc, char * argv[]) {
if ((mode == AFSK) || (mode == CW)) { if ((mode == AFSK) || (mode == CW)) {
get_tlm(); get_tlm();
sleep(25); sleep(25);
sleep((int)rnd_float(0.0, 5.0));
fprintf(stderr, "INFO: Sleeping for 25 sec\n"); fprintf(stderr, "INFO: Sleeping for 25 sec\n");
} else if ((mode == FSK) || (mode == BPSK)) {// FSK or BPSK } else if ((mode == FSK) || (mode == BPSK)) {// FSK or BPSK
get_tlm_fox(); get_tlm_fox();

Loading…
Cancel
Save

Powered by TurnKey Linux.