Skip to content

Commit fa8b520

Browse files
anhmoltnordicjm
authored andcommitted
lib: modem_attest_token: correct format usage
Correctly pass arguments to nrf_modem_at_scanf for ATTESTTOKEN AT command. Signed-off-by: Andreas Moltumyr <[email protected]>
1 parent 6a8a892 commit fa8b520

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/modem_attest_token/modem_attest_token.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ int modem_attest_token_get(struct nrf_attestation_token *const token)
4343

4444
/* Execute AT command to get attestation token */
4545
ret = nrf_modem_at_scanf(AT_ATTEST_CMD,
46-
"%%ATTESTTOKEN: \"%127[^.].%127[^\"]\"", &attest, &cose);
46+
"%%ATTESTTOKEN: \"%127[^.].%127[^\"]\"", attest, cose);
4747
if (ret != 2) {
4848
return -EBADMSG;
4949
}

0 commit comments

Comments
 (0)