File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
connectivity/cellular/source/framework/AT Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -544,6 +544,7 @@ nsapi_error_t AT_CellularContext::find_and_activate_context()
544
544
delete_current_context ();
545
545
} else if (err == NSAPI_ERROR_OK) {
546
546
_is_context_active = true ;
547
+ _is_context_activated = true ;
547
548
}
548
549
549
550
_at.unlock ();
@@ -757,8 +758,9 @@ void AT_CellularContext::check_and_deactivate_context()
757
758
// For EPS, if an attempt is made to disconnect the last PDN connection, then the MT responds with ERROR
758
759
if (_is_context_active && (rat < CellularNetwork::RAT_E_UTRAN || active_contexts_count > 1 )) {
759
760
_at.clear_error ();
760
- deactivate_context ();
761
761
}
762
+
763
+ deactivate_context ();
762
764
763
765
if (_new_context_set) {
764
766
delete_current_context ();
You can’t perform that action at this time.
0 commit comments