make the help message even clearer, and fix a bug featuring me being unable to count

This commit is contained in:
Lucifer Voeltner 2024-12-03 10:23:41 +07:00
commit e416080ae8
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View file

@ -3482,7 +3482,7 @@ void MifareGen3Blk(uint8_t block_len, uint8_t *block) {
retval = PM3_ESOFT;
goto OUT;
}
cmd[ofs] = block_len < card_info->uidlen ? card_info->sak : cmd[ofs];
cmd[ofs] = block_len <= card_info->uidlen ? card_info->sak : cmd[ofs];
ofs++;
cmd[ofs++] = card_info->atqa[0];
cmd[ofs++] = card_info->atqa[1];