File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
features/cellular/easy_cellular Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -76,14 +76,7 @@ CellularConnectionFSM::~CellularConnectionFSM()
76
76
void CellularConnectionFSM::stop ()
77
77
{
78
78
tr_info (" CellularConnectionUtil::stop" );
79
- if (_cellularDevice) {
80
- _cellularDevice->close_power ();
81
- _cellularDevice->close_network ();
82
- _cellularDevice->close_sim ();
83
- _power = NULL ;
84
- _network = NULL ;
85
- _sim = NULL ;
86
- }
79
+
87
80
if (_queue_thread) {
88
81
_queue_thread->terminate ();
89
82
delete _queue_thread;
@@ -162,7 +155,7 @@ bool CellularConnectionFSM::open_sim()
162
155
nsapi_error_t err = _sim->set_pin (_sim_pin);
163
156
if (err) {
164
157
tr_error (" SIM pin set failed with: %d, bailing out..." , err);
165
- }
158
+ }
166
159
} else {
167
160
tr_warn (" PIN required but No SIM pin provided." );
168
161
}
You can’t perform that action at this time.
0 commit comments