From 720f80405395c2c40ae1e3c7a9a782b81ec93ab1 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Tue, 1 Oct 2019 09:27:21 -0400 Subject: [PATCH] added strerror(errno) for send() --- afsk/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/afsk/main.c b/afsk/main.c index b7cb89be..6e11b554 100644 --- a/afsk/main.c +++ b/afsk/main.c @@ -911,7 +911,7 @@ int get_tlm_fox() { digitalWrite (0, LOW); printf("Sending buffer over socket!\n"); int sock_ret = send(sock, buffer[alt], buffSize, 0); - printf("Result of socket send: %d\n", sock_ret); + printf("Result of socket send: %d errorno: %d \n", sock_ret, strerror(errno)); alt = (++alt) % 2; printf("Alternate value is %d \n", alt); }