fixed roundup

pull/28/head
alanbjohnston 6 years ago committed by GitHub
parent c5931f609d
commit 34b849f332
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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.5)))/(float)(frameCnt) )), 0);
int sock_ret = send(sock, buffer, (int)(ctr * ((float)( ((int)(frameCnt/2 + 0.6)))/(float)(frameCnt) )), 0);
printf("Result of socket send: %d \n", sock_ret);
if (sock_ret == -1) {
printf("Error: %s \n", strerror(errno));

Loading…
Cancel
Save

Powered by TurnKey Linux.