backward compatibility, on load converter for old mfu dump format

This commit is contained in:
Eloff
2019-04-23 17:07:20 +03:00
parent 8793a9e596
commit a8c1fa7a3b
6 changed files with 96 additions and 10 deletions

View File

@@ -2590,6 +2590,16 @@ int CmdHF14AMfELoad(const char *Cmd) {
return 2;
}
// convert old mfu format to new
if (blockWidth == 4) {
res = convertOldMfuDump(&data, &datalen);
if (res) {
PrintAndLogEx(FAILED, "Failed convert on load to new Ultralight/NTAG format");
free(data);
return res;
}
}
PrintAndLogEx(INFO, "Copying to emulator memory");
blockNum = 0;