mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
Add additional file exists check to remove errors
This commit is contained in:
parent
d9a3e4f050
commit
dd646a64a6
2 changed files with 22 additions and 5 deletions
|
@ -1901,9 +1901,13 @@ void MifareChkKeys_fast(uint32_t arg0, uint32_t arg1, uint32_t arg2, uint8_t *da
|
|||
if (use_flashmem) {
|
||||
BigBuf_free();
|
||||
uint32_t size = 0;
|
||||
size = size_in_spiffs(MF_KEYS_FILE);
|
||||
if (size <= 0)
|
||||
if (exists_in_spiffs(MF_KEYS_FILE)) {
|
||||
size = size_in_spiffs(MF_KEYS_FILE);
|
||||
}
|
||||
if (size == 0) {
|
||||
Dbprintf("Spiffs file: %s does not exists or empty.", MF_KEYS_FILE);
|
||||
goto OUT;
|
||||
}
|
||||
|
||||
keyCount = size / MF_KEY_LENGTH;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue