We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fe94092 + c5f164d commit 18d4adfCopy full SHA for 18d4adf
features/cellular/framework/AT/AT_CellularDevice.cpp
@@ -454,10 +454,12 @@ nsapi_error_t AT_CellularDevice::init()
454
_at->clear_error();
455
_at->flush();
456
_at->at_cmd_discard("E0", "");
457
- _at->at_cmd_discard("+CMEE", "=1");
458
- _at->at_cmd_discard("+CFUN", "=1");
459
if (_at->get_last_error() == NSAPI_ERROR_OK) {
460
- break;
+ _at->at_cmd_discard("+CMEE", "=1");
+ _at->at_cmd_discard("+CFUN", "=1");
+ if (_at->get_last_error() == NSAPI_ERROR_OK) {
461
+ break;
462
+ }
463
}
464
tr_debug("Wait 100ms to init modem");
465
rtos::ThisThread::sleep_for(100); // let modem have time to get ready
0 commit comments