mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
Final changes for the Client part of issue 416, which actually include the corrent return values. This should have been in the previous commit, but I'm still getting my head round git.
This commit is contained in:
@ -77,7 +77,7 @@ int Client::available() {
|
||||
|
||||
int Client::read() {
|
||||
uint8_t b;
|
||||
if ( recv(_sock, &b, 1) )
|
||||
if ( recv(_sock, &b, 1) > 0 )
|
||||
{
|
||||
// recv worked
|
||||
return b;
|
||||
|
Reference in New Issue
Block a user