Skip to content

Commit d828d2d

Browse files
Change error code from NSAPI_ERROR_PARAMETER to NSAPI_ERROR_NO_CONNECTION
in a case were there wasn't connection.
1 parent 7995e8b commit d828d2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/lwipstack/LWIPInterface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ nsapi_error_t LWIP::Interface::bringdown()
583583
{
584584
// Check if we've connected
585585
if (connected == NSAPI_STATUS_DISCONNECTED) {
586-
return NSAPI_ERROR_PARAMETER;
586+
return NSAPI_ERROR_NO_CONNECTION;
587587
}
588588

589589
#if LWIP_DHCP

0 commit comments

Comments
 (0)