summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-06-27 23:04:25 -0700
committerKeith Packard <keithp@keithp.com>2012-06-27 23:04:25 -0700
commitf9f65211c378849270a6138fda05ed2a166f7d82 (patch)
treea84c31130314ff016e74877d3203c5b7377314ca
parentdd623b21cb904238c6d903b6936ff2f8ebf6f339 (diff)
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 <keithp@keithp.com>
-rw-r--r--src/megametrum-v0.1/Makefile3
-rw-r--r--src/megametrum-v0.1/ao_pins.h2
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)