changed send to only send half of buffer

pull/28/head
alanbjohnston 6 years ago committed by GitHub
parent c99fdf508c
commit 9b6df1c3cd
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, ctr, 0);
int sock_ret = send(sock, buffer, (int)(ctr * ( ((int)(frameCnt/2 + 0.5))/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.