small addon

This commit is contained in:
merlokk 2019-03-05 01:02:54 +02:00
parent 3bf618ca56
commit 34a133451e

View file

@ -24,7 +24,7 @@ uint16_t ndefTLVGetLength(uint8_t *data, size_t *indx) {
return len;
}
int ndefRecordDecodeAndPrint(uint8_t *ndefRecord, size_t ndefRecordLen) {
int ndefRecordsDecodeAndPrint(uint8_t *ndefRecord, size_t ndefRecordLen) {
@ -53,7 +53,7 @@ int NDEFDecodeAndPrint(uint8_t *ndef, size_t ndefLen, bool verbose) {
uint16_t len = ndefTLVGetLength(&ndef[indx], &indx);
PrintAndLogEx(INFO, "-- NDEF message. len: %d", len);
int res = ndefRecordDecodeAndPrint(&ndef[indx], len);
int res = ndefRecordsDecodeAndPrint(&ndef[indx], len);
if (res)
return res;