We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe7e7b9 commit a039388Copy full SHA for a039388
src/EthernetClient.cpp
@@ -268,7 +268,7 @@ UIPClient::flush()
268
int
269
UIPClient::available()
270
{
271
- if (!data)
+ if (!(*this))
272
return 0;
273
274
int len = 0;
@@ -286,7 +286,7 @@ UIPClient::available()
286
287
UIPClient::read(uint8_t *buf, size_t size)
288
289
- if (data)
+ if (*this)
290
291
uint16_t remain = size;
292
if (data->packets_in[0] == NOBLOCK)
@@ -338,7 +338,7 @@ UIPClient::read()
338
339
UIPClient::peek()
340
341
342
343
if (data->packets_in[0] != NOBLOCK)
344
@@ -353,7 +353,7 @@ UIPClient::peek()
353
void
354
UIPClient::discardReceived()
355
356
357
358
_flushBlocks(data->packets_in);
359
}
0 commit comments