Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Put back delay comments
With just slight paraphrase
  • Loading branch information
emelianov committed Jun 21, 2019
commit efde1269bba3099532b838f167eaddb6b48cb5be
2 changes: 2 additions & 0 deletions libraries/ESP8266WiFi/src/include/ClientContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ class ClientContext
}
_connect_pending = 1;
_op_start_time = millis();
// Following delay will be interrupted by connect callback
for (decltype(_timeout_ms) i = 0; _connect_pending && i < _timeout_ms; i++) {
// let a chance to recurrent scheduled functions (ethernet)
delay(1);
Expand Down Expand Up @@ -458,6 +459,7 @@ class ClientContext
}

_send_waiting = true;
// Following delay will be interrupted by on next received ack
for (decltype(_timeout_ms) i = 0; _send_waiting && i < _timeout_ms; i++) {
// let a chance to recurrent scheduled functions (ethernet)
delay(1);
Expand Down