Skip to content

Commit

Permalink
lib: modem_attest_token: correct format usage
Browse files Browse the repository at this point in the history
Correctly pass arguments to nrf_modem_at_scanf for ATTESTTOKEN
AT command.

Signed-off-by: Andreas Moltumyr <[email protected]>
  • Loading branch information
anhmolt authored and nordicjm committed Oct 14, 2024
1 parent 6a8a892 commit fa8b520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/modem_attest_token/modem_attest_token.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ int modem_attest_token_get(struct nrf_attestation_token *const token)

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

0 comments on commit fa8b520

Please sign in to comment.