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; int res = -1;
if (clientAvailable(client) >= 1) { if (clientAvailable(client) >= 1) {
uint8_t buf; uint8_t buf;
int32_t res = recv(client->sockNum, &buf, 1); res = recv(client->sockNum, &buf, 1);
if (res == 1) { if (res == 1) {
res = (int) buf; res = (int) buf;
} }
@ -100,3 +100,5 @@ bool clientConnected(client_t *client) {
uint32_t millis() { uint32_t millis() {
return HAL_GetTick(); return HAL_GetTick();
} }