mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07: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') {
|
if (filename[0] != '\0') {
|
||||||
saveFile(filename, "", dump, len);
|
saveFile(filename, "", dump, len);
|
||||||
if (eml) {
|
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…
Add table
Add a link
Reference in a new issue