mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
iso15 dump file handling: set old format as obsolete in saver
This commit is contained in:
parent
b7928eb85e
commit
7e3112242e
1 changed files with 2 additions and 18 deletions
|
@ -501,24 +501,6 @@ int saveFileJSONex(const char *preferredName, JSONFileType ftype, uint8_t *data,
|
|||
}
|
||||
break;
|
||||
}
|
||||
// handles ISO15693 w blocksize of 4 bytes
|
||||
case jsf15_v2: {
|
||||
JsonSaveStr(root, "FileType", "15693 v2");
|
||||
for (size_t i = 0; i < datalen / 4; i++) {
|
||||
snprintf(path, sizeof(path), "$.blocks.%zu", i);
|
||||
JsonSaveBufAsHexCompact(root, path, &data[i * 4], 4);
|
||||
}
|
||||
break;
|
||||
}
|
||||
// handles ISO15693 w blocksize of 8 bytes
|
||||
case jsf15_v3: {
|
||||
JsonSaveStr(root, "FileType", "15693 v3");
|
||||
for (size_t i = 0; i < datalen / 8; i++) {
|
||||
snprintf(path, sizeof(path), "$.blocks.%zu", i);
|
||||
JsonSaveBufAsHexCompact(root, path, &data[i * 8], 8);
|
||||
}
|
||||
break;
|
||||
}
|
||||
// handles ISO15693 in iso15_tag_t format
|
||||
case jsf15_v4: {
|
||||
JsonSaveStr(root, "FileType", "15693 v4");
|
||||
|
@ -734,6 +716,8 @@ int saveFileJSONex(const char *preferredName, JSONFileType ftype, uint8_t *data,
|
|||
case jsfCardMemory:
|
||||
case jsf14b:
|
||||
case jsf15:
|
||||
case jsf15_v2:
|
||||
case jsf15_v3:
|
||||
case jsfLegic:
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue