added printf of return value of send()

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

@ -910,7 +910,8 @@ int get_tlm_fox() {
{
digitalWrite (0, LOW);
printf("Sending buffer over socket!\n");
send(sock, buffer[alt], buffSize, 0);
int sock_ret = send(sock, buffer[alt], buffSize, 0);
printf("Result of socket send: %d\n", sock_ret);
alt = (++alt) % 2;
printf("Alternate value is %d \n", alt);
}

Loading…
Cancel
Save

Powered by TurnKey Linux.