The NFC Type 5 tag code prints a message whenever it receives an
error.  This makes it extra noisy compared to the other tag types
whenever a tag is moved out of range.  Instead, reduce that noise
by turning the error message into a debug message.

Signed-off-by: Mark Greer <[email protected]>
---
 plugins/nfctype5.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/nfctype5.c b/plugins/nfctype5.c
index 1beb3a8..2fccec5 100644
--- a/plugins/nfctype5.c
+++ b/plugins/nfctype5.c
@@ -226,7 +226,7 @@ static int t5_check_resp(uint8_t *resp, int length)
        DBG("");
 
        if (length < 0) {
-               near_error("Cmd failure: %d", length);
+               DBG("Cmd failure: %d", length);
                err = length;
        } else if (resp[0]) {
                near_error("NFC Failure: 0x%x", resp[0]);
-- 
2.13.0

Reply via email to