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 c300878 commit b8d5305Copy full SHA for b8d5305
src/ota/interface/OTAInterfaceDefault.cpp
@@ -94,7 +94,9 @@ OTACloudProcessInterface::State OTADefaultCloudProcessInterface::fetch() {
94
95
do {
96
if(http_client->available() == 0) {
97
- goto exit;
+ /* Avoid tight loop and allow yield */
98
+ delay(1);
99
+ continue;
100
}
101
102
http_res = http_client->read(context->buffer, context->buf_len);
0 commit comments