Test refinement. IRQ test times out after not receiving anything, warning that you probably don't have interrupts hooked up.

This commit is contained in:
maniacbug 2011-08-02 21:00:31 -07:00
parent a261710761
commit d967f7708f
1 changed files with 10 additions and 0 deletions

View File

@ -272,6 +272,13 @@ void loop(void)
// Try again soon
delay(interval);
// Timeout if we have not received anything back ever
if ( ! last_message_count && millis() > interval * 10 )
{
printf("No responses received. Are interrupts connected??\n\r");
done = true;
}
}
//
@ -291,6 +298,9 @@ void loop(void)
else
printf("FAIL\n\r\n\r");
}
//
//
}
void check_radio(void)