Skip to content

Commit ac78b5a

Browse files
author
Ari Parkkila
committed
Cellular: Fix to delete context just once
1 parent 3a96f43 commit ac78b5a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

features/cellular/framework/AT/AT_CellularContext.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,8 +741,7 @@ void AT_CellularContext::check_and_deactivate_context()
741741
}
742742

743743
if (_new_context_set) {
744-
_at.clear_error();
745-
_at.at_cmd_discard("+CGDCONT", "=", "%d", _cid);
744+
delete_current_context();
746745
}
747746

748747
_at.restore_at_timeout();

0 commit comments

Comments
 (0)