diff --git a/libnfc/drivers/arygon.c b/libnfc/drivers/arygon.c index a30cf01..92259d7 100644 --- a/libnfc/drivers/arygon.c +++ b/libnfc/drivers/arygon.c @@ -312,8 +312,7 @@ arygon_check_communication(const nfc_device_spec_t nds) const byte_t pncmd_communication_test[] = { DEV_ARYGON_PROTOCOL_TAMA, 0x00,0x00,0xff,0x09,0xf7,0xd4,0x00,0x00,'l','i','b','n','f','c',0xbe,0x00 }; #ifdef DEBUG - printf(" TX: "); - print_hex(pncmd_communication_test,sizeof(pncmd_communication_test)); + PRINT_HEX("TX", pncmd_communication_test,sizeof(pncmd_communication_test)); #endif uart_send((serial_port)nds, pncmd_communication_test, sizeof(pncmd_communication_test)); @@ -321,8 +320,7 @@ arygon_check_communication(const nfc_device_spec_t nds) return false; } #ifdef DEBUG - printf(" RX: "); - print_hex(abtRx,szRxLen); + PRINT_HEX("RX", abtRx,szRxLen); #endif const byte_t attempted_result[] = { 0x00,0x00,0xff,0x00,0xff,0x00,0x00,0x00,0xff,0x09,0xf7,0xD5,0x01,0x00,'l','i','b','n','f','c',0xbc,0x00}; diff --git a/libnfc/drivers/pn532_uart.c b/libnfc/drivers/pn532_uart.c index bbbdf78..35c89ae 100644 --- a/libnfc/drivers/pn532_uart.c +++ b/libnfc/drivers/pn532_uart.c @@ -291,8 +291,7 @@ pn532_uart_wakeup(const nfc_device_spec_t nds) const byte_t pncmd_pn532c106_wakeup_preamble[] = { 0x55,0x55,0x00,0x00,0x00 }; #ifdef DEBUG - printf(" TX: "); - print_hex(pncmd_pn532c106_wakeup_preamble,sizeof(pncmd_pn532c106_wakeup_preamble)); + PRINT_HEX("TX", pncmd_pn532c106_wakeup_preamble,sizeof(pncmd_pn532c106_wakeup_preamble)); #endif uart_send((serial_port)nds, pncmd_pn532c106_wakeup_preamble, sizeof(pncmd_pn532c106_wakeup_preamble)); }