Skip to content

Commit cbf1d39

Browse files
MirkoCovizzirlubos
authored andcommitted
lib: lte_link_control: cereg: use macro instead of hardcoded
Use the proper macro instead of a hardcoded string. Signed-off-by: Mirko Covizzi <[email protected]>
1 parent 37a152a commit cbf1d39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/lte_link_control/modules/cereg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ int cereg_status_get(enum lte_lc_nw_reg_status *status)
350350
}
351351

352352
/* Read network registration status */
353-
err = nrf_modem_at_scanf("AT+CEREG?",
353+
err = nrf_modem_at_scanf(AT_CEREG_READ,
354354
"+CEREG: "
355355
"%*u," /* <n> */
356356
"%hu," /* <stat> */

0 commit comments

Comments
 (0)