From 2ab25f0382ccf21ca5c803f0953157a5479f1fde Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Tue, 19 Apr 2016 17:03:42 +0200 Subject: [PATCH] Fix unused-but-set-variable warning --- examples/adk/adk_barcode/adk_barcode.ino | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/adk/adk_barcode/adk_barcode.ino b/examples/adk/adk_barcode/adk_barcode.ino index e671c661..9417617d 100644 --- a/examples/adk/adk_barcode/adk_barcode.ino +++ b/examples/adk/adk_barcode/adk_barcode.ino @@ -55,9 +55,17 @@ uint8_t keylcl; if( keylcl == 0x13 ) { rcode = adk.SndData( strlen( new_line ), (uint8_t *)new_line ); + if (rcode && rcode != hrNAK) { + Serial.print(F("\r\nData send: ")); + Serial.print(rcode, HEX); + } } else { rcode = adk.SndData( 1, &keylcl ); + if (rcode && rcode != hrNAK) { + Serial.print(F("\r\nData send: ")); + Serial.print(rcode, HEX); + } } Serial.print((char) keylcl );