fix clientRead function

This commit is contained in:
Wolfgang Hottgenroth 2020-11-13 14:13:43 +01:00
parent 477f3e2e3f
commit e4d9be0106

View File

@ -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();
}
}