changed send to i from buffSize

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

@ -914,7 +914,8 @@ int get_tlm_fox() {
{
digitalWrite (0, LOW);
printf("Sending %d buffer bytes over socket!\n", buffSize);
int sock_ret = send(sock, buffer[alt], buffSize, 0);
// int sock_ret = send(sock, buffer[alt], buffSize, 0);
int sock_ret = send(sock, buffer[alt], i, 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.