Skip to content
This repository was archived by the owner on Apr 23, 2023. It is now read-only.

Commit b651ec2

Browse files
committed
Fixed get DNS returns cont ptr
1 parent d0a31db commit b651ec2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp_utils/WiFi.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ void WiFi::dump() {
218218
ESP_LOGD(LOG_TAG, "WiFi Dump");
219219
ESP_LOGD(LOG_TAG, "---------");
220220
char ipAddrStr[30];
221-
ip_addr_t ip = ::dns_getserver(0);
222-
inet_ntop(AF_INET, &ip, ipAddrStr, sizeof(ipAddrStr));
221+
const ip_addr_t* ip = ::dns_getserver(0);
222+
inet_ntop(AF_INET, ip, ipAddrStr, sizeof(ipAddrStr));
223223
ESP_LOGD(LOG_TAG, "DNS Server[0]: %s", ipAddrStr);
224224
} // dump
225225

0 commit comments

Comments
 (0)