altos: Disable mag sensor for megametrum
authorKeith Packard <keithp@keithp.com>
Thu, 28 Jun 2012 06:04:25 +0000 (23:04 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 28 Jun 2012 06:04:25 +0000 (23:04 -0700)
It doesn't work unless USB is connected or occasionally while the
debug port is enabled. It's mystic.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/megametrum-v0.1/Makefile
src/megametrum-v0.1/ao_pins.h

index 06b5e2ae37aea6fec0c86718898a2dbea3487f9d..e789a0e86ed57195d7d38c38edbb7a391c980283 100644 (file)
@@ -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 \
index 1d2051e147577d2e4e8a0ea2a90d26f412ae78c3..dc3761ba3f16506d2138e1c12b120652c58fb210 100644 (file)
@@ -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)