From f5cf84a5d671ea2dc956ca84212f057ecbe56405 Mon Sep 17 00:00:00 2001 From: nickdbate Date: Wed, 6 May 2020 20:53:37 +0100 Subject: [PATCH] Added QMC-5883 magnetometer support to SPRACING H7 NANO target Added QMC-5883 magnetometer support to SPRACING H7 NANO target. Duplicating pull request #9531 --- src/main/target/SPRACINGH7NANO/target.h | 1 + src/main/target/SPRACINGH7NANO/target.mk | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/target/SPRACINGH7NANO/target.h b/src/main/target/SPRACINGH7NANO/target.h index a98272a2e..29456cb32 100644 --- a/src/main/target/SPRACINGH7NANO/target.h +++ b/src/main/target/SPRACINGH7NANO/target.h @@ -129,6 +129,7 @@ #define USE_MAG #define USE_MAG_HMC5883 +#define USE_MAG_QMC5883 #define USE_BARO #define USE_BARO_BMP388 diff --git a/src/main/target/SPRACINGH7NANO/target.mk b/src/main/target/SPRACINGH7NANO/target.mk index a1ed7ad09..7a2eb8b6c 100644 --- a/src/main/target/SPRACINGH7NANO/target.mk +++ b/src/main/target/SPRACINGH7NANO/target.mk @@ -15,6 +15,7 @@ TARGET_SRC += \ drivers/accgyro/accgyro_mpu6500.c \ drivers/accgyro/accgyro_spi_mpu6500.c \ drivers/compass/compass_hmc5883l.c \ + drivers/compass/compass_qmc5883l.c \ drivers/barometer/barometer_bmp085.c \ drivers/barometer/barometer_bmp280.c \ drivers/barometer/barometer_bmp388.c \