We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e549355 commit 63a8448Copy full SHA for 63a8448
libraries/ESP8266WiFi/src/include/ClientContext.h
@@ -26,7 +26,6 @@ class WiFiClient;
26
27
typedef void (*discard_cb_t)(void*, ClientContext*);
28
29
-extern "C" void esp_yield();
30
extern "C" void esp_schedule();
31
32
#include "DataSource.h"
@@ -333,7 +332,7 @@ class ClientContext
333
332
last_sent = millis();
334
}
335
336
- esp_yield(); // from sys or os context
+ delay(0); // from sys or os context
337
338
if ((state() != ESTABLISHED) || (sndbuf == TCP_SND_BUF)) {
339
break;
@@ -456,7 +455,7 @@ class ClientContext
456
455
457
458
++_send_waiting;
459
- esp_yield();
+ delay(0);
460
} while(true);
461
_send_waiting = 0;
462
0 commit comments