Added more information about whether the write was successful.

This commit is contained in:
maniacbug 2011-09-12 19:13:07 -07:00
parent cc7e0a2f19
commit dceef7b45e
1 changed files with 6 additions and 1 deletions

View File

@ -144,7 +144,12 @@ void loop(void)
// Take the time, and send it. This will block until complete // Take the time, and send it. This will block until complete
unsigned long time = millis(); unsigned long time = millis();
printf("Now sending %lu...",time); printf("Now sending %lu...",time);
radio.write( &time, sizeof(unsigned long) ); bool ok = radio.write( &time, sizeof(unsigned long) );
if (ok)
printf("ok...");
else
printf("failed.\n\r");
// Now, continue listening // Now, continue listening
radio.startListening(); radio.startListening();