fix ´hf search' / ´hf 15 reader´ looping gave false result

This commit is contained in:
iceman1001 2021-04-15 21:51:47 +02:00
parent d1fe746ebf
commit 786858aa6c

View file

@ -417,7 +417,7 @@ static int getUID(bool loop, uint8_t *buf) {
uint8_t fast = 1;
uint8_t reply = 1;
int res = PM3_SUCCESS;
int res = PM3_ESOFT;
do {
clearCommandBuffer();
@ -437,8 +437,9 @@ static int getUID(bool loop, uint8_t *buf) {
PrintAndLogEx(SUCCESS, " UID: " _GREEN_("%s"), iso15693_sprintUID(NULL, buf));
PrintAndLogEx(SUCCESS, "TYPE: " _YELLOW_("%s"), getTagInfo_15(buf));
if (loop == false) {
res = PM3_SUCCESS;
if (loop == false) {
break;
}
}