Merge pull request #12670 from michalpasztamobica/esp8266_netmask_gateway

ESP8266: Fix typo: gateway to netmask
pull/12719/head
Martin Kojtal 2020-03-30 11:36:02 +02:00 committed by GitHub
commit 451bd061bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -571,7 +571,7 @@ nsapi_error_t ESP8266Interface::get_netmask(SocketAddress *address)
return NSAPI_ERROR_NO_CONNECTION; return NSAPI_ERROR_NO_CONNECTION;
} }
if (!address->set_ip_address(_esp.gateway())) { if (!address->set_ip_address(_esp.netmask())) {
return NSAPI_ERROR_NO_ADDRESS; return NSAPI_ERROR_NO_ADDRESS;
} }