Skip to content

Commit 451bd06

Browse files
authored
Merge pull request #12670 from michalpasztamobica/esp8266_netmask_gateway
ESP8266: Fix typo: gateway to netmask
2 parents 5a07aab + 2b9210c commit 451bd06

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)