AP_AHRS: do not compile AP_AHRS.cpp if AP_AHRS_ENABLED is 0

on Periph we end up not having a default backend, which is a compilation failure
This commit is contained in:
Peter Barker 2024-01-03 11:41:04 +11:00 committed by Peter Barker
parent f4d51fd8f5
commit dd0a7a551b
1 changed files with 7 additions and 0 deletions

View File

@ -18,6 +18,11 @@
* ArduPilot
*
*/
#include "AP_AHRS_config.h"
#if AP_AHRS_ENABLED
#include <AP_HAL/AP_HAL.h>
#include "AP_AHRS.h"
#include "AP_AHRS_View.h"
@ -3544,3 +3549,5 @@ AP_AHRS &ahrs()
}
}
#endif // AP_AHRS_ENABLED