Skip to content

Commit ad1387b

Browse files
committed
Fix Quectel M26 context hang
1 parent 70f3cf8 commit ad1387b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

features/cellular/framework/targets/QUECTEL/M26/QUECTEL_M26.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ nsapi_error_t QUECTEL_M26::get_sim_state(SimState &state)
5454
_at->lock();
5555
nsapi_error_t err = _at->at_cmd_str("+CPIN", "?", buf, 13);
5656
tr_debug("CPIN: %s", buf);
57+
_at->unlock();
5758

5859
if (memcmp(buf, "READY", 5) == 0) {
5960
state = SimStateReady;

0 commit comments

Comments
 (0)