@@ -42,7 +42,7 @@ namespace mbed
42
42
CellularConnectionFSM::CellularConnectionFSM () :
43
43
_serial (0 ), _state(STATE_INIT), _next_state(_state), _status_callback(0 ), _event_status_cb(0 ), _network(0 ), _power(0 ), _sim(0 ),
44
44
_queue (8 * EVENTS_EVENT_SIZE), _queue_thread(0 ), _cellularDevice(0 ), _retry_count(0 ), _event_timeout(-1 ),
45
- _at_queue (8 * EVENTS_EVENT_SIZE), _eventID(0 ), _auto_registration( false )
45
+ _at_queue (8 * EVENTS_EVENT_SIZE), _eventID(0 )
46
46
{
47
47
memset (_sim_pin, 0 , sizeof (_sim_pin));
48
48
#if MBED_CONF_CELLULAR_RANDOM_MAX_START_DELAY == 0
@@ -294,16 +294,11 @@ const char* CellularConnectionFSM::get_state_string(CellularState state)
294
294
295
295
nsapi_error_t CellularConnectionFSM::is_automatic_registering (bool & auto_reg)
296
296
{
297
- if (_auto_registration == CellularNetwork::NWModeAutomatic) {
298
- auto_reg = _auto_registration;
299
- return NSAPI_ERROR_OK;
300
- }
301
297
CellularNetwork::NWRegisteringMode mode;
302
298
nsapi_error_t err = _network->get_network_registering_mode (mode);
303
299
if (err == NSAPI_ERROR_OK) {
304
- tr_info (" automatic registering mode: %d" , mode);
305
- _auto_registration = (mode == CellularNetwork::NWModeAutomatic);
306
- auto_reg = _auto_registration;
300
+ tr_debug (" automatic registering mode: %d" , mode);
301
+ auto_reg = (mode == CellularNetwork::NWModeAutomatic);
307
302
}
308
303
return err;
309
304
}
0 commit comments