From e4d9be0106a919f4dce465788e5c9dd3fee241dc Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Fri, 13 Nov 2020 14:13:43 +0100 Subject: [PATCH] fix clientRead function --- src/platformAdaption.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/platformAdaption.c b/src/platformAdaption.c index 76580ac..7bda1c9 100644 --- a/src/platformAdaption.c +++ b/src/platformAdaption.c @@ -72,7 +72,7 @@ int clientRead(client_t *client) { int res = -1; if (clientAvailable(client) >= 1) { uint8_t buf; - int32_t res = recv(client->sockNum, &buf, 1); + res = recv(client->sockNum, &buf, 1); if (res == 1) { res = (int) buf; } @@ -99,4 +99,6 @@ bool clientConnected(client_t *client) { uint32_t millis() { return HAL_GetTick(); -} \ No newline at end of file +} + +