From: Keith Packard Date: Tue, 14 May 2013 17:46:26 +0000 (-0700) Subject: altos: Remove MPU6000 debuging hacks X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=8e47c9929318d81bbafe6bf2b2f0d8879291a0e0;hp=72a52875e55fef30d3cddf1fe4ee707088c2c150;p=fw%2Faltos altos: Remove MPU6000 debuging hacks Appears to be working now Signed-off-by: Keith Packard --- 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