1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

Small update to the osx wdg

This commit is contained in:
James Cotton 2012-03-12 20:17:32 -05:00
parent 51f0c3453b
commit 491df5d130

View File

@ -145,7 +145,8 @@ void PIOS_WDG_Clear(void)
bool PIOS_WDG_Check()
{
if(PIOS_DELAY_DiffuS(wdg_cleared_time) > 250000) {
fprintf(stderr, "Watchdog fired!\r\n");
if(!wdg_expired)
fprintf(stderr, "Watchdog fired!\r\n");
wdg_expired = true;
}
return wdg_expired;