mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-17 02:52:12 +01:00
Small update to the osx wdg
This commit is contained in:
parent
51f0c3453b
commit
491df5d130
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user