now skips non ndef formmated sectors

This commit is contained in:
iceman1001 committed 2022-10-23 02:17:49 +02:00
1 parent ac29a893cf
commit 69fd1ac889
2 files changed
+7

No files matched your search

+6
View File
@@ -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;