5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-01-02 22:18:28 -04:00

AP_HAL_Linux: set external and internal i2c bus masks for Navigator

This fixes an issue where the internal Compass was being re-detected
as an exernal one
This commit is contained in:
Willian Galvani 2022-01-06 14:08:59 -03:00
parent 5747f38d7f
commit 06fe9cde88

View File

@ -194,6 +194,9 @@
#define HAL_BARO_PROBE_LIST PROBE_BARO_I2C(BMP280, 1, 0x76)
#define HAL_BARO_EXTERNAL_BUS_DEFAULT 6
#define HAL_PROBE_EXTERNAL_I2C_COMPASSES
// I2C6 is the only one exposed
#define HAL_LINUX_I2C_EXTERNAL_BUS_MASK 1 << 6
#define HAL_LINUX_I2C_INTERNAL_BUS_MASK 0
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BLUE
#define HAL_GPIO_A_LED_PIN 66
#define HAL_GPIO_B_LED_PIN 67