Skip to content

Commit 14156d8

Browse files
Bugfix WiFiGeneric - SoftAP DHCPServer Corrupt Log Entry (#6719)
Fixes corrupt log entry printed by SoftAP DHCPServer. Converts String() to expected cstr format.
1 parent b42b208 commit 14156d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/WiFi/src/WiFiGeneric.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ esp_err_t set_esp_interface_ip(esp_interface_t interface, IPAddress local_ip=IPA
151151
lease.start_ip.addr = dhcp_ipaddr + (1 << 24);
152152
lease.end_ip.addr = dhcp_ipaddr + (11 << 24);
153153
}
154-
log_v("DHCP Server Range: %s to %s", IPAddress(lease.start_ip.addr).toString(), IPAddress(lease.end_ip.addr).toString());
154+
log_v("DHCP Server Range: %s to %s", IPAddress(lease.start_ip.addr).toString().c_str(), IPAddress(lease.end_ip.addr).toString().c_str());
155155
err = tcpip_adapter_dhcps_option(
156156
(tcpip_adapter_dhcp_option_mode_t)TCPIP_ADAPTER_OP_SET,
157157
(tcpip_adapter_dhcp_option_id_t)REQUESTED_IP_ADDRESS,

0 commit comments

Comments
 (0)