10000 Fix stuck DONE bit in DNS · espressif/arduino-esp32@a260999 · GitHub
[go: up one dir, main page]

Skip to content

Commit a260999

Browse files
committed
Fix stuck DONE bit in DNS
1 parent b92c58d commit a260999

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/WiFi/src/WiFiGeneric.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,8 +717,8 @@ int WiFiGenericClass::hostByName(const char* aHostname, IPAddress& aResult)
717717
aResult = addr.u_addr.ip4.addr;
718718
} else if(err == ERR_INPROGRESS) {
719719
waitStatusBits(WIFI_DNS_DONE_BIT, 4000);
720-
clearStatusBits(WIFI_DNS_DONE_BIT);
721720
}
721+
clearStatusBits(WIFI_DNS_DONE_BIT);
722722
setStatusBits(WIFI_DNS_IDLE_BIT);
723723
if((uint32_t)aResult == 0){
724724
log_e("DNS Failed for %s", aHostname);

0 commit comments

Comments
 (0)
0