Skip to content

Commit 31114ba

Browse files
authored
Merge pull request #11598 from JanneKiiskila/AT_Cell_err_warn
AT_CellularDevice.cpp - unused variable err warning
2 parents 3787998 + 55f6518 commit 31114ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

features/cellular/framework/AT/AT_CellularDevice.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ nsapi_error_t AT_CellularDevice::get_sim_state(SimState &state)
203203
_at->flush();
204204
nsapi_error_t error = _at->at_cmd_str("+CPIN", "?", simstr, sizeof(simstr));
205205
ssize_t len = strlen(simstr);
206+
#if MBED_CONF_MBED_TRACE_ENABLE
206207
device_err_t err = _at->get_last_device_error();
208+
#endif
207209
_at->unlock();
208210

209211
if (len != -1) {

0 commit comments

Comments
 (0)