mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Fix some more unused-but-set-variable warnings
And autoformat some of the examples
This commit is contained in:
parent
938880b71d
commit
14021813ef
2 changed files with 62 additions and 46 deletions
|
@ -56,7 +56,15 @@ void loop()
|
|||
}
|
||||
/* sending back what was received */
|
||||
rcode = adk.SndData( strlen( recv ), (uint8_t *)recv );
|
||||
if (rcode && rcode != hrNAK) {
|
||||
Serial.print(F("\r\nData send: "));
|
||||
Serial.print(rcode, HEX);
|
||||
}
|
||||
rcode = adk.SndData( strlen(( char * )msg ), msg );
|
||||
if (rcode && rcode != hrNAK) {
|
||||
Serial.print(F("\r\nData send: "));
|
||||
Serial.print(rcode, HEX);
|
||||
}
|
||||
|
||||
}//if( len > 0 )...
|
||||
|
||||
|
|
|
@ -44,7 +44,15 @@ void loop()
|
|||
ultoa( millis() / 1000, (char *)buf, 10 );
|
||||
|
||||
rcode = adk.SndData( strlen((char *)buf), buf );
|
||||
if (rcode && rcode != hrNAK) {
|
||||
Serial.print(F("\r\nData send: "));
|
||||
Serial.print(rcode, HEX);
|
||||
}
|
||||
rcode = adk.SndData( strlen( sec_ela), (uint8_t *)sec_ela );
|
||||
if (rcode && rcode != hrNAK) {
|
||||
Serial.print(F("\r\nData send: "));
|
||||
Serial.print(rcode, HEX);
|
||||
}
|
||||
|
||||
delay( 1000 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue