mirror of https://github.com/ARMmbed/mbed-os.git
Cellular: Fix to delete context just once
parent
3a96f436ea
commit
ac78b5ab16
|
@ -741,8 +741,7 @@ void AT_CellularContext::check_and_deactivate_context()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_new_context_set) {
|
if (_new_context_set) {
|
||||||
_at.clear_error();
|
delete_current_context();
|
||||||
_at.at_cmd_discard("+CGDCONT", "=", "%d", _cid);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_at.restore_at_timeout();
|
_at.restore_at_timeout();
|
||||||
|
|
Loading…
Reference in New Issue