This commit is contained in:
lmx
2025-11-25 16:22:28 +08:00
parent fb12a84d2c
commit 51788e4b88
4 changed files with 28 additions and 15 deletions

View File

@ -612,11 +612,17 @@ unsigned char ReaderV_Inventory(struct picc_v_struct *picc_v)
SetCommand(CMD_TRANSCEIVE);
rfid_delay_ms(10);
GetReg(REG_ERROR, &reg_data);
if ((reg_data & 0x0F) != 0)
if ((reg_data & 0x0F) != 0){
xlog("(reg_data & 0x0F) != 0\n");
return FAIL;
}
GetReg(REG_FIFOLENGTH, &reg_data);
if (reg_data != 10)
if (reg_data != 10){
xlog("reg_data != 10\n");
return FAIL;
}
GetReg(REG_FIFODATA, &picc_v->RESPONSE);
GetReg(REG_FIFODATA, &reg_data); // DSFID
for (i = 0; i < 8; i++)