From f9f65211c378849270a6138fda05ed2a166f7d82 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 27 Jun 2012 23:04:25 -0700 Subject: [PATCH] altos: Disable mag sensor for megametrum It doesn't work unless USB is connected or occasionally while the debug port is enabled. It's mystic. Signed-off-by: Keith Packard --- src/megametrum-v0.1/Makefile | 3 ++- src/megametrum-v0.1/ao_pins.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/megametrum-v0.1/Makefile b/src/megametrum-v0.1/Makefile index 06b5e2ae..e789a0e8 100644 --- a/src/megametrum-v0.1/Makefile +++ b/src/megametrum-v0.1/Makefile @@ -29,6 +29,8 @@ INC = \ #PROFILE=ao_profile.c +# ao_hmc5883.c + ALTOS_SRC = \ ao_interrupt.c \ ao_product.c \ @@ -60,7 +62,6 @@ ALTOS_SRC = \ ao_exti_stm.c \ ao_report.c \ ao_i2c_stm.c \ - ao_hmc5883.c \ ao_mpu6000.c \ ao_convert_pa.c \ ao_log.c \ diff --git a/src/megametrum-v0.1/ao_pins.h b/src/megametrum-v0.1/ao_pins.h index 1d2051e1..dc3761ba 100644 --- a/src/megametrum-v0.1/ao_pins.h +++ b/src/megametrum-v0.1/ao_pins.h @@ -286,7 +286,7 @@ struct ao_adc { * Mag sensor (hmc5883) */ -#define HAS_HMC5883 1 +#define HAS_HMC5883 0 #define AO_HMC5883_INT_PORT (&stm_gpioc) #define AO_HMC5883_INT_PIN 12 #define AO_HMC5883_I2C_INDEX STM_I2C_INDEX(1) -- 2.30.2