Merge pull request #11598 from JanneKiiskila/AT_Cell_err_warn

AT_CellularDevice.cpp - unused variable err warning
pull/11607/head
Martin Kojtal 2019-10-01 13:35:03 +02:00 committed by GitHub
commit 31114ba343
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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) {