mirror of https://github.com/ARMmbed/mbed-os.git
Change error code from NSAPI_ERROR_PARAMETER to NSAPI_ERROR_NO_CONNECTION
in a case were there wasn't connection.pull/8851/head
parent
7995e8beac
commit
d828d2d279
|
@ -583,7 +583,7 @@ nsapi_error_t LWIP::Interface::bringdown()
|
||||||
{
|
{
|
||||||
// Check if we've connected
|
// Check if we've connected
|
||||||
if (connected == NSAPI_STATUS_DISCONNECTED) {
|
if (connected == NSAPI_STATUS_DISCONNECTED) {
|
||||||
return NSAPI_ERROR_PARAMETER;
|
return NSAPI_ERROR_NO_CONNECTION;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if LWIP_DHCP
|
#if LWIP_DHCP
|
||||||
|
|
Loading…
Reference in New Issue