now skips non ndef formmated sectors
This commit is contained in:
1 parent
ac29a893cf
commit
69fd1ac889
2 files changed
+7
No files matched your search
@@ -6139,9 +6139,15 @@ int CmdHFMFNDEFWrite(const char *Cmd) {
|
||||
|
||||
PrintAndLogEx(INPLACE, "%u", block_no);
|
||||
|
||||
// find next available block
|
||||
block_no++;
|
||||
if (mfIsSectorTrailer(block_no)) {
|
||||
block_no++;
|
||||
|
||||
// skip sectors which isn't ndef formatted
|
||||
while ( freemem[mfSectorNum(block_no)] == 0 ) {
|
||||
block_no++;
|
||||
}
|
||||
}
|
||||
|
||||
bytes -= MFBLOCK_SIZE;
|
||||
|
||||
Reference in new issue
Block a user