1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

Removed unused stuff from WiFi library.

This commit is contained in:
Cristian Maglie
2013-12-10 17:23:25 +01:00
parent 825d8c8455
commit d920b7b67c
9 changed files with 50 additions and 171 deletions

View File

@ -104,7 +104,10 @@ int WiFiClient::read() {
int WiFiClient::read(uint8_t* buf, size_t size) {
if (!ServerDrv::getDataBuf(_sock, buf, &size))
// sizeof(size_t) is architecture dependent
// but we need a 16 bit data type here
uint16_t _size = size;
if (!ServerDrv::getDataBuf(_sock, buf, &_size))
return -1;
return 0;
}