dump function indicates use of tag UID in filename but takes device serial -> changed to UID

This commit is contained in:
tharexde 2020-10-26 00:22:11 +01:00
commit 82c2f79dd0

View file

@ -673,7 +673,7 @@ int CmdEM4x50Dump(const char *Cmd) {
if (strlen(filename) == 0) { if (strlen(filename) == 0) {
PrintAndLogEx(INFO, "Using UID as filename"); PrintAndLogEx(INFO, "Using UID as filename");
fptr += sprintf(fptr, "lf-4x50-"); fptr += sprintf(fptr, "lf-4x50-");
FillFileNameByUID(fptr, words[EM4X50_DEVICE_SERIAL].byte, "-dump", 4); FillFileNameByUID(fptr, words[EM4X50_DEVICE_ID].byte, "-dump", 4);
} }
uint8_t data[EM4X50_NO_WORDS * 4] = {0}; uint8_t data[EM4X50_NO_WORDS * 4] = {0};