mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Fix unused-but-set-variable warning
This commit is contained in:
parent
9d4f9108e6
commit
2ab25f0382
1 changed files with 8 additions and 0 deletions
|
@ -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 );
|
||||||
|
|
Loading…
Reference in a new issue