mirror of https://github.com/ArduPilot/ardupilot
Sub: move dummy methods into system.cpp
This commit is contained in:
parent
54373a6703
commit
5a28aa9c1b
|
@ -836,7 +836,3 @@ int32_t GCS_MAVLINK_Sub::global_position_int_relative_alt() const {
|
|||
}
|
||||
return GCS_MAVLINK::global_position_int_relative_alt();
|
||||
}
|
||||
|
||||
// dummy method to avoid linking AFS
|
||||
bool AP_AdvancedFailsafe::gcs_terminate(bool should_terminate, const char *reason) { return false; }
|
||||
AP_AdvancedFailsafe *AP::advancedfailsafe() { return nullptr; }
|
||||
|
|
|
@ -302,3 +302,9 @@ bool Sub::should_log(uint32_t mask)
|
|||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
#include <AP_AdvancedFailsafe/AP_AdvancedFailsafe.h>
|
||||
|
||||
// dummy method to avoid linking AFS
|
||||
bool AP_AdvancedFailsafe::gcs_terminate(bool should_terminate, const char *reason) { return false; }
|
||||
AP_AdvancedFailsafe *AP::advancedfailsafe() { return nullptr; }
|
||||
|
|
Loading…
Reference in New Issue