mirror of https://github.com/ARMmbed/mbed-os.git
Check if a queue is present. Return an error otherwise
parent
2de83fb286
commit
d55f6a9915
|
@ -136,6 +136,10 @@ nsapi_error_t CellularConnectionFSM::init()
|
||||||
}
|
}
|
||||||
|
|
||||||
_at_queue = _cellularDevice->get_queue();
|
_at_queue = _cellularDevice->get_queue();
|
||||||
|
if (!_at_queue) {
|
||||||
|
stop();
|
||||||
|
return NSAPI_ERROR_NO_MEMORY;
|
||||||
|
}
|
||||||
_at_queue->chain(&_queue);
|
_at_queue->chain(&_queue);
|
||||||
|
|
||||||
_retry_count = 0;
|
_retry_count = 0;
|
||||||
|
|
Loading…
Reference in New Issue