hf mf nested: swap loops for faster results (try harder to break keyA first)

This commit is contained in:
Philippe Teuwen 2019-08-26 20:37:33 +02:00
parent bdd6ef98b5
commit 1368595be1

View file

@ -1243,9 +1243,9 @@ static int CmdHF14AMfNested(const char *Cmd) {
// int iterations = 0;
bool calibrate = true;
for (int i = 0; i < MIFARE_SECTOR_RETRY; i++) {
for (trgKeyType = 0; trgKeyType < 2; ++trgKeyType) {
for (uint8_t sectorNo = 0; sectorNo < SectorsCnt; ++sectorNo) {
for (trgKeyType = 0; trgKeyType < 2; ++trgKeyType) {
for (int i = 0; i < MIFARE_SECTOR_RETRY; i++) {
if (e_sector[sectorNo].foundKey[trgKeyType]) continue;