Skip to content

Commit 9e87200

Browse files
authored
Merge pull request #11556 from mikter/master
modified Wi-SUN tasklet to return success when calling connect twice
2 parents 7ba151a + 86e3a5a commit 9e87200

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/nanostack/nanostack-interface/Nanostack.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ nsapi_error_t map_mesh_error(mesh_error_t err)
116116
case MESH_ERROR_PARAM:
117117
return NSAPI_ERROR_PARAMETER;
118118
case MESH_ERROR_STATE:
119-
return NSAPI_ERROR_DEVICE_ERROR;
119+
return NSAPI_ERROR_IS_CONNECTED;
120120
default:
121121
return NSAPI_ERROR_DEVICE_ERROR;
122122
}

0 commit comments

Comments
 (0)