Change error code from NSAPI_ERROR_PARAMETER to NSAPI_ERROR_NO_CONNECTION

in a case were there wasn't connection.
pull/8851/head
Kari Haapalehto 2018-11-23 11:49:40 +02:00
parent 7995e8beac
commit d828d2d279
1 changed files with 1 additions and 1 deletions

View File

@ -583,7 +583,7 @@ nsapi_error_t LWIP::Interface::bringdown()
{
// Check if we've connected
if (connected == NSAPI_STATUS_DISCONNECTED) {
return NSAPI_ERROR_PARAMETER;
return NSAPI_ERROR_NO_CONNECTION;
}
#if LWIP_DHCP