mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-24 16:14:59 +08:00
chg: adapt the eml block size based on filename
This commit is contained in:
parent
99e61f82c0
commit
091f9fb94c
1 changed files with 8 additions and 1 deletions
|
@ -322,7 +322,14 @@ static int CmdFlashMemSpiFFSDump(const char *Cmd) {
|
|||
if (filename[0] != '\0') {
|
||||
saveFile(filename, "", dump, len);
|
||||
if (eml) {
|
||||
saveFileEML(filename, dump, len, 16);
|
||||
uint8_t eml_len = 16;
|
||||
|
||||
if (strstr(filename, "iclass") != NULL)
|
||||
eml_len = 8;
|
||||
else if (strstr(filename, "mfu") != NULL)
|
||||
eml_len = 4;
|
||||
|
||||
saveFileEML(filename, dump, len, eml_len);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue