Improved readability of SPI related debug messages.
This commit is contained in:
@@ -255,7 +255,7 @@ uint8_t mfrc522_interface_spi_read(uint8_t reg, uint8_t *buf, uint16_t len)
|
||||
memcpy(buf, local_buf + 1, len);
|
||||
|
||||
// XXX Debug - remove me
|
||||
mfrc522_interface_debug_print("[SPI-RX]: ");
|
||||
mfrc522_interface_debug_print("[SPI-RX REG 0x%x] ", (uint8_t) ((reg & 0x7f) >> 1));
|
||||
print_hex(buf, len);
|
||||
|
||||
return (uint8_t) (n_bytes_read == local_buf_len) ? 0 : 1;
|
||||
@@ -283,7 +283,7 @@ uint8_t mfrc522_interface_spi_write(uint8_t reg, uint8_t *buf, uint16_t len)
|
||||
memcpy(&local_buf[1], buf, len);
|
||||
|
||||
// XXX Debug - remove me
|
||||
mfrc522_interface_debug_print("[SPI-TX]: ");
|
||||
mfrc522_interface_debug_print("[SPI-TX REG 0x%x] ", (uint8_t) ((reg & 0x7f) >> 1));
|
||||
print_hex(buf, len);
|
||||
|
||||
cs_select();
|
||||
|
||||
Reference in New Issue
Block a user