From 59a3deba3edfdb7ad2350675955dcbf351e777b8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 23 Jun 2018 10:33:06 +1000 Subject: [PATCH] HAL_Linux: allow for 16 I2C buses on Linux --- libraries/AP_HAL/board/linux.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_HAL/board/linux.h b/libraries/AP_HAL/board/linux.h index be4fefad5b..0c2d892977 100644 --- a/libraries/AP_HAL/board/linux.h +++ b/libraries/AP_HAL/board/linux.h @@ -385,7 +385,7 @@ // if bus masks are not setup above then use these defaults #ifndef HAL_LINUX_I2C_BUS_MASK -#define HAL_LINUX_I2C_BUS_MASK 0x1f +#define HAL_LINUX_I2C_BUS_MASK 0xFFFF #endif #ifndef HAL_LINUX_I2C_INTERNAL_BUS_MASK @@ -393,5 +393,5 @@ #endif #ifndef HAL_LINUX_I2C_EXTERNAL_BUS_MASK -#define HAL_LINUX_I2C_EXTERNAL_BUS_MASK 0x1E +#define HAL_LINUX_I2C_EXTERNAL_BUS_MASK 0xFFFF #endif