From 8e47c9929318d81bbafe6bf2b2f0d8879291a0e0 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 14 May 2013 10:46:26 -0700 Subject: [PATCH 1/1] altos: Remove MPU6000 debuging hacks Appears to be working now Signed-off-by: Keith Packard --- src/drivers/ao_mpu6000.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/drivers/ao_mpu6000.c b/src/drivers/ao_mpu6000.c index fb2d54c0..fc768cc9 100644 --- a/src/drivers/ao_mpu6000.c +++ b/src/drivers/ao_mpu6000.c @@ -305,7 +305,6 @@ static struct ao_task ao_mpu6000_task; static void ao_mpu6000_show(void) { -#if 0 struct ao_data sample; ao_data_get(&sample); @@ -316,8 +315,6 @@ ao_mpu6000_show(void) sample.mpu6000.gyro_x, sample.mpu6000.gyro_y, sample.mpu6000.gyro_z); -#endif - printf ("who-am-i: %02x\n", ao_mpu6000_reg_read(MPU6000_WHO_AM_I)); } static const struct ao_cmds ao_mpu6000_cmds[] = { @@ -330,7 +327,7 @@ ao_mpu6000_init(void) { ao_mpu6000_configured = 0; -// ao_add_task(&ao_mpu6000_task, ao_mpu6000, "mpu6000"); + ao_add_task(&ao_mpu6000_task, ao_mpu6000, "mpu6000"); #ifndef AO_MPU6000_I2C_INDEX ao_spi_init_cs(AO_MPU6000_SPI_CS_PORT, (1 << AO_MPU6000_SPI_CS_PIN)); #endif -- 2.30.2