style
This commit is contained in:
1 parent
af685fe47c
commit
4f96d3eb46
13 files changed
+172
-172
No files matched your search
@@ -1285,26 +1285,26 @@ int NDEFGetTotalLength(uint8_t *ndef, size_t ndeflen, size_t *outlen) {
|
||||
size_t idx = 0;
|
||||
while (idx < ndeflen) {
|
||||
|
||||
if (ndef[idx] == 0x00 ||
|
||||
ndef[idx] == 0x01 ||
|
||||
ndef[idx] == 0x02 ||
|
||||
ndef[idx] == 0x03 ||
|
||||
ndef[idx] == 0xFD) {
|
||||
if (ndef[idx] == 0x00 ||
|
||||
ndef[idx] == 0x01 ||
|
||||
ndef[idx] == 0x02 ||
|
||||
ndef[idx] == 0x03 ||
|
||||
ndef[idx] == 0xFD) {
|
||||
idx++;
|
||||
idx += ndefTLVGetLength(&ndef[idx], &idx);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
if (ndef[idx] == 0xFE) {
|
||||
idx++;
|
||||
break;
|
||||
}
|
||||
|
||||
// invalid NDEF
|
||||
// invalid NDEF
|
||||
*outlen = 0;
|
||||
return PM3_ESOFT;
|
||||
}
|
||||
|
||||
*outlen = idx;
|
||||
return PM3_SUCCESS;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user