idea based on @jamchamb PR in official pm3 https://github.com/Proxmark/proxmark3/pull/584

This commit is contained in:
iceman1001 2018-03-15 20:06:12 +01:00
commit 3438d016c7
3 changed files with 5 additions and 5 deletions

View file

@ -330,9 +330,9 @@ void MifareUReadCard(uint8_t arg0, uint16_t arg1, uint8_t arg2, uint8_t *datain)
if (len) {
if (MF_DBGLEVEL >= MF_DBG_ERROR) Dbprintf("Read block %d error",i);
// if no blocks read - error out
if (i==0){
if (i == 0) {
OnError(2);
return;
return;
} else {
//stop at last successful read block and return what we got
break;