diff --git a/afsk/main.c b/afsk/main.c index d7bd45cc..95e3b301 100644 --- a/afsk/main.c +++ b/afsk/main.c @@ -2201,8 +2201,9 @@ void get_tlm_fox() { sock_ret = send(sock, &buffer[sock_ret], (unsigned int)(ctr * 2 + 2 - sock_ret), 0); printf("socket send 2 %d ms bytes: %d \n\n", millis() - start, sock_ret); } - start = millis(); - int sock_ret = send(sock, buffer, (unsigned int)(ctr * 2 + 2), 0); + if (mode == BPSK) { + start = millis(); + sock_ret = send(sock, buffer, (unsigned int)(ctr * 2 + 2), 0); printf("socket send 1a %d ms bytes: %d \n\n", (unsigned int)millis() - start, sock_ret); fflush(stdout); @@ -2211,7 +2212,8 @@ void get_tlm_fox() { sleep(0.5); sock_ret = send(sock, &buffer[sock_ret], (unsigned int)(ctr * 2 + 2 - sock_ret), 0); printf("socket send 2a %d ms bytes: %d \n\n", millis() - start, sock_ret); - } + } + } // if ((mode == BPSK) && (firstTime == 1)) // only do first time if (firstTime == 1) // only do first time {