mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
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:
parent
f4d51fd8f5
commit
dd0a7a551b
@ -18,6 +18,11 @@
|
|||||||
* ArduPilot
|
* ArduPilot
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "AP_AHRS_config.h"
|
||||||
|
|
||||||
|
#if AP_AHRS_ENABLED
|
||||||
|
|
||||||
#include <AP_HAL/AP_HAL.h>
|
#include <AP_HAL/AP_HAL.h>
|
||||||
#include "AP_AHRS.h"
|
#include "AP_AHRS.h"
|
||||||
#include "AP_AHRS_View.h"
|
#include "AP_AHRS_View.h"
|
||||||
@ -3544,3 +3549,5 @@ AP_AHRS &ahrs()
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // AP_AHRS_ENABLED
|
||||||
|
Loading…
Reference in New Issue
Block a user