Skip to content

Commit 9e9f2a2

Browse files
Kimmo Vaisanenadbridge
authored andcommitted
Cellular: Fix plmn trace for IAR
IAR compiler does not seem to like printing null strings.
1 parent b2e921f commit 9e9f2a2

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
@@ -253,7 +253,7 @@ nsapi_error_t AT_CellularContext::set_blocking(bool blocking)
253253

254254
void AT_CellularContext::set_plmn(const char *plmn)
255255
{
256-
tr_info("CellularContext plmn %s", plmn);
256+
tr_info("CellularContext plmn %s", (plmn ? plmn : "NULL"));
257257
_device->set_plmn(plmn);
258258
}
259259

0 commit comments

Comments
 (0)