From a7b4bb3896ad87e98b9cc8db28c3a1f204c853a9 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 5 Oct 2019 11:56:48 -0400 Subject: [PATCH] plus 1 instead of round --- afsk/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/afsk/main.c b/afsk/main.c index b00f3ebf..17b1c351 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 + 0.6)))/(float)(frameCnt) )), 0); + int sock_ret = send(sock, buffer, (int)(ctr * ((float)( ((int)(frameCnt/2 + 1)))/(float)(frameCnt) )), 0); printf("Result of socket send: %d \n", sock_ret); if (sock_ret == -1) { printf("Error: %s \n", strerror(errno));