fix clientRead function
This commit is contained in:
parent
477f3e2e3f
commit
e4d9be0106
@ -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;
|
||||
}
|
||||
@ -100,3 +100,5 @@ bool clientConnected(client_t *client) {
|
||||
uint32_t millis() {
|
||||
return HAL_GetTick();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user