Skip to content

Commit 23986f1

Browse files
Ari ParkkilaEvelyne Donnaes
authored andcommitted
Cellular: Fix to delete context just once
1 parent dbe9bfc commit 23986f1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

features/cellular/framework/AT/AT_CellularContext.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -757,10 +757,7 @@ void AT_CellularContext::check_and_deactivate_context()
757757
}
758758

759759
if (_new_context_set) {
760-
_at.clear_error();
761-
_at.cmd_start("AT+CGDCONT=");
762-
_at.write_int(_cid);
763-
_at.cmd_stop_read_resp();
760+
delete_current_context();
764761
}
765762

766763
_at.restore_at_timeout();

0 commit comments

Comments
 (0)