Fix some more unused-but-set-variable warnings

And autoformat some of the examples
This commit is contained in:
Kristian Sloth Lauszus 2016-04-19 17:12:10 +02:00
parent 938880b71d
commit 14021813ef
2 changed files with 62 additions and 46 deletions

View file

@ -56,7 +56,15 @@ void loop()
} }
/* sending back what was received */ /* sending back what was received */
rcode = adk.SndData( strlen( recv ), (uint8_t *)recv ); 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 ); rcode = adk.SndData( strlen(( char * )msg ), msg );
if (rcode && rcode != hrNAK) {
Serial.print(F("\r\nData send: "));
Serial.print(rcode, HEX);
}
}//if( len > 0 )... }//if( len > 0 )...

View file

@ -44,7 +44,15 @@ void loop()
ultoa( millis() / 1000, (char *)buf, 10 ); ultoa( millis() / 1000, (char *)buf, 10 );
rcode = adk.SndData( strlen((char *)buf), buf ); 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 ); 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 ); delay( 1000 );
} }