Skip to content

Commit 06caa0f

Browse files
author
Kimmo Vaisanen
committed
Cellular: Fix plmn trace for IAR
IAR compiler does not seem to like printing null strings.
1 parent 9f2b23d commit 06caa0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/cellular/framework/AT/AT_CellularContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ nsapi_error_t AT_CellularContext::set_blocking(bool blocking)
259259

260260
void AT_CellularContext::set_plmn(const char *plmn)
261261
{
262-
tr_info("CellularContext plmn %s", plmn);
262+
tr_info("CellularContext plmn %s", (plmn ? plmn : "NULL"));
263263
_device->set_plmn(plmn);
264264
}
265265

0 commit comments

Comments
 (0)