Skip to content

Commit 2b9210c

Browse files
ESP8266: Fix typo: gateway to netmask
1 parent ef2c1c8 commit 2b9210c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/wifi/esp8266-driver/ESP8266Interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ nsapi_error_t ESP8266Interface::get_netmask(SocketAddress *address)
571571
return NSAPI_ERROR_NO_CONNECTION;
572572
}
573573

574-
if (!address->set_ip_address(_esp.gateway())) {
574+
if (!address->set_ip_address(_esp.netmask())) {
575575
return NSAPI_ERROR_NO_ADDRESS;
576576
}
577577

0 commit comments

Comments
 (0)