Tools: Replay: correct compilation when AdvancedFailsafe not available

This commit is contained in:
Peter Barker 2023-10-17 13:58:12 +11:00 committed by Peter Barker
parent c6b93baf44
commit fb87369c7e
1 changed files with 2 additions and 0 deletions

View File

@ -100,8 +100,10 @@ const struct AP_Param::GroupInfo GCS_MAVLINK_Parameters::var_info[] = {
};
GCS_Dummy _gcs;
#if AP_ADVANCEDFAILSAFE_ENABLED
AP_AdvancedFailsafe *AP::advancedfailsafe() { return nullptr; }
bool AP_AdvancedFailsafe::gcs_terminate(bool should_terminate, const char *reason) { return false; }
#endif
// dummy method to avoid linking AP_Avoidance
// AP_Avoidance *AP::ap_avoidance() { return nullptr; }