Skip to content

Commit 0cc1345

Browse files
authored
Merge pull request #8851 from KariHaapalehto/disconnect_error_code_change
Change error code from NSAPI_ERROR_PARAMETER to NSAPI_ERROR_NO_CONNEC…
2 parents 7a77e66 + d828d2d commit 0cc1345

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)