From 199a623fdc34086af64df6ca87c29de2962217be Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 5 Oct 2019 11:59:48 -0400 Subject: [PATCH] try 2x send --- afsk/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/afsk/main.c b/afsk/main.c index 17b1c351..520e9a9a 100644 --- a/afsk/main.c +++ b/afsk/main.c @@ -923,7 +923,7 @@ int get_tlm_fox() { digitalWrite (0, LOW); printf("Sending %d buffer bytes over socket!\n", ctr); // int sock_ret = send(sock, buffer, buffSize, 0); - int sock_ret = send(sock, buffer, (int)(ctr * ((float)( ((int)(frameCnt/2 + 1)))/(float)(frameCnt) )), 0); + int sock_ret = send(sock, buffer, ctr * 2 + 1, 0); printf("Result of socket send: %d \n", sock_ret); if (sock_ret == -1) { printf("Error: %s \n", strerror(errno));