AP_Compass: only build AK8963 driver on Linux
must match MPU9250 build
This commit is contained in:
parent
7f425a97a3
commit
c83d5b1f08
@ -25,6 +25,8 @@
|
||||
#include <AP_Math.h>
|
||||
#include <AP_HAL.h>
|
||||
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX
|
||||
|
||||
#include "AP_Compass_AK8963.h"
|
||||
#include "../AP_InertialSensor/AP_InertialSensor_MPU9250.h"
|
||||
|
||||
@ -474,3 +476,4 @@ void AP_Compass_AK8963::_bus_write(uint8_t address, const uint8_t *buf, uint32_t
|
||||
|
||||
_spi->transaction(tx, NULL, count + 1);
|
||||
}
|
||||
#endif // CONFIG_HAL_BOARD
|
||||
|
Loading…
Reference in New Issue
Block a user