chips/pn53x: print a debug trace when reading PN53x registers.

This commit is contained in:
Romuald Conty 2011-05-05 18:19:20 +00:00
parent 579102bd7b
commit cad3dc652d
2 changed files with 165 additions and 0 deletions

View file

@ -409,6 +409,9 @@ pn53x_read_register (nfc_device_t * pnd, uint16_t ui16Reg, uint8_t * ui8Value)
byte_t abtRegValue[2];
size_t szRegValue = sizeof (abtRegValue);
PNREG_DBG (ui16Reg);
if (pn53x_transceive (pnd, abtCmd, sizeof (abtCmd), abtRegValue, &szRegValue)) {
if (CHIP_DATA(pnd)->type == PN533) {
// PN533 prepends its answer by a status byte