pn532_uart: make use of log level for pn53x_check_communication()

This commit is contained in:
Philippe Teuwen 2013-10-01 14:14:00 +02:00
parent 1d0d3c3b45
commit 186cccfe6a

View file

@ -290,7 +290,7 @@ pn532_uart_open(const nfc_context *context, const nfc_connstring connstring)
// Check communication using "Diagnose" command, with "Communication test" (0x00) // Check communication using "Diagnose" command, with "Communication test" (0x00)
if (pn53x_check_communication(pnd) < 0) { if (pn53x_check_communication(pnd) < 0) {
nfc_perror(pnd, "pn53x_check_communication"); log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_ERROR, "pn53x_check_communication error on %s", ndd.port);
pn532_uart_close(pnd); pn532_uart_close(pnd);
return NULL; return NULL;
} }