From cbf1d39c3fa2c33708480011d115ac442a9a7cf2 Mon Sep 17 00:00:00 2001 From: Mirko Covizzi Date: Tue, 15 Oct 2024 10:38:02 +0200 Subject: [PATCH] lib: lte_link_control: cereg: use macro instead of hardcoded Use the proper macro instead of a hardcoded string. Signed-off-by: Mirko Covizzi --- lib/lte_link_control/modules/cereg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lte_link_control/modules/cereg.c b/lib/lte_link_control/modules/cereg.c index 741d6aa2dce9..31a8be53cf62 100644 --- a/lib/lte_link_control/modules/cereg.c +++ b/lib/lte_link_control/modules/cereg.c @@ -350,7 +350,7 @@ int cereg_status_get(enum lte_lc_nw_reg_status *status) } /* Read network registration status */ - err = nrf_modem_at_scanf("AT+CEREG?", + err = nrf_modem_at_scanf(AT_CEREG_READ, "+CEREG: " "%*u," /* */ "%hu," /* */