mirror of https://github.com/ARMmbed/mbed-os.git
Modified Wi-SUN tasklet to return correct status when calling connect twice
When calling mesh connect method twice NSAPI_ERROR_IS_CONNECTED is returned instead of NSAPI_ERROR_DEVICE_ERROR Following the mesh API documentation.pull/11556/head
parent
f513bce4a3
commit
86e3a5a021
|
|
@ -116,7 +116,7 @@ nsapi_error_t map_mesh_error(mesh_error_t err)
|
|||
case MESH_ERROR_PARAM:
|
||||
return NSAPI_ERROR_PARAMETER;
|
||||
case MESH_ERROR_STATE:
|
||||
return NSAPI_ERROR_DEVICE_ERROR;
|
||||
return NSAPI_ERROR_IS_CONNECTED;
|
||||
default:
|
||||
return NSAPI_ERROR_DEVICE_ERROR;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue