Fix unused-but-set-variable warning

This commit is contained in:
Kristian Sloth Lauszus 2016-04-19 17:03:42 +02:00
parent 9d4f9108e6
commit 2ab25f0382

View file

@ -55,9 +55,17 @@ uint8_t keylcl;
if( keylcl == 0x13 ) { if( keylcl == 0x13 ) {
rcode = adk.SndData( strlen( new_line ), (uint8_t *)new_line ); 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 { else {
rcode = adk.SndData( 1, &keylcl ); rcode = adk.SndData( 1, &keylcl );
if (rcode && rcode != hrNAK) {
Serial.print(F("\r\nData send: "));
Serial.print(rcode, HEX);
}
} }
Serial.print((char) keylcl ); Serial.print((char) keylcl );