Skip to content

Commit b58a521

Browse files
making dns resolution to work automatically when interrupts are disabled
1 parent e303948 commit b58a521

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libraries/lwIpWrapper/src/CNetIf.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,13 @@ int CLwipIf::getHostByName(const char* aHostname, IPAddress& aResult, bool execu
226226

227227
while(res == 1 && !completed) { // DNS timeouts seems to be handled by lwip, no need to put one here
228228
delay(1);
229+
#ifndef LWIP_USE_TIMER
230+
this->task();
231+
#else // LWIP_USE_TIMER
229232
if(execute_task) {
230233
this->task();
231234
}
235+
#endif // LWIP_USE_TIMER
232236
}
233237

234238
return res == 1 ? 0 : res;

0 commit comments

Comments
 (0)