Skip to content

Commit eadc799

Browse files
authored
Merge pull request #10919 from jeromecoutant/PR_AT_MUTEX
AT Cellular Network: mutex lock issue
2 parents a562473 + 758a4bb commit eadc799

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

features/cellular/framework/AT/AT_CellularNetwork.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ nsapi_error_t AT_CellularNetwork::get_attach(AttachStatus &status)
293293

294294
nsapi_error_t AT_CellularNetwork::detach()
295295
{
296+
_at.lock();
296297
tr_debug("Network detach");
297298
_at.at_cmd_discard("+CGATT", "=0");
298299

0 commit comments

Comments
 (0)