mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #11598 from JanneKiiskila/AT_Cell_err_warn
AT_CellularDevice.cpp - unused variable err warningpull/11607/head
commit
31114ba343
|
|
@ -203,7 +203,9 @@ nsapi_error_t AT_CellularDevice::get_sim_state(SimState &state)
|
||||||
_at->flush();
|
_at->flush();
|
||||||
nsapi_error_t error = _at->at_cmd_str("+CPIN", "?", simstr, sizeof(simstr));
|
nsapi_error_t error = _at->at_cmd_str("+CPIN", "?", simstr, sizeof(simstr));
|
||||||
ssize_t len = strlen(simstr);
|
ssize_t len = strlen(simstr);
|
||||||
|
#if MBED_CONF_MBED_TRACE_ENABLE
|
||||||
device_err_t err = _at->get_last_device_error();
|
device_err_t err = _at->get_last_device_error();
|
||||||
|
#endif
|
||||||
_at->unlock();
|
_at->unlock();
|
||||||
|
|
||||||
if (len != -1) {
|
if (len != -1) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue