From 6caf22e106688e816e406063bd27204c30c05b72 Mon Sep 17 00:00:00 2001 From: nerdCopter <56646290+nerdCopter@users.noreply.github.com> Date: Thu, 28 Mar 2024 15:51:52 -0500 Subject: [PATCH] fix MATEKF405SE MAG_I2C_INSTANCE (#850) fix MATEKF405SE Baro & Mag I2C --- src/main/target/MATEKF405SE/target.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/target/MATEKF405SE/target.h b/src/main/target/MATEKF405SE/target.h index 5be9894d2b..0af5b9d9fc 100644 --- a/src/main/target/MATEKF405SE/target.h +++ b/src/main/target/MATEKF405SE/target.h @@ -85,7 +85,7 @@ #define USE_I2C // Useful for MATEKF405_OSD, since it does not have the SCL / SDA pads #define USE_I2C_DEVICE_1 -#define I2C_DEVICE (I2CDEV_1) +#define I2C_DEVICE_1 (I2CDEV_1) #define I2C1_SCL PB8 // S4 pad #define I2C3_SDA PB9 // S6 pad #define BARO_I2C_INSTANCE (I2CDEV_1) @@ -94,7 +94,7 @@ #define I2C_DEVICE_2 (I2CDEV_2) #define I2C2_SCL PB10 // SCL pad #define I2C2_SDA PB11 // SDA pad -#define BARO_I2C_INSTANCE (I2CDEV_1) +#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define USE_BARO_BMP280