Plane: don't trigger GCS failsafe if GCS never connected
The we have never received a heartbeat message from the GCS then don't use the lack of heartbeat to trigger a failsafe event
This commit is contained in:
parent
e93888dee9
commit
87c6545ac6
@ -393,6 +393,7 @@ static void check_long_failsafe()
|
||||
failsafe_long_on_event(FAILSAFE_LONG);
|
||||
}
|
||||
if (g.gcs_heartbeat_fs_enabled &&
|
||||
last_heartbeat_ms != 0 &&
|
||||
(tnow - last_heartbeat_ms) > FAILSAFE_LONG_TIME) {
|
||||
failsafe_long_on_event(FAILSAFE_GCS);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user