CHG: 'hf mf fchk' - no need to send dummy coomand to trigger timeout.

CHG: 'hf mf fchk' - added some debugstatements.  These will become optional later.
CHG: 'hf mf fchk' - lower re-try from 10 to 5
This commit is contained in:
iceman1001 2017-10-12 15:17:10 +02:00
commit 71a500d824
2 changed files with 57 additions and 56 deletions

View file

@ -338,10 +338,8 @@ int cjat91_saMifareChkKeys(uint8_t blockNo, uint8_t keyType, bool clearTrace, ui
uint8_t dummy_answer = 0;
ReaderTransmit(&dummy_answer, 1, NULL);
timeout = GetCountSspClk() + AUTHENTICATION_TIMEOUT;
// wait for the card to become ready again
while(GetCountSspClk() < timeout) {};
SpinDelayUs(AUTHENTICATION_TIMEOUT);
continue;
}