diff options
author | Keith Packard <keithp@keithp.com> | 2013-05-14 10:46:26 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-05-14 10:46:26 -0700 |
commit | 8e47c9929318d81bbafe6bf2b2f0d8879291a0e0 (patch) | |
tree | 0611ffb78c932ffb3968fe0d6c05e20ace33faa3 | |
parent | 72a52875e55fef30d3cddf1fe4ee707088c2c150 (diff) |
altos: Remove MPU6000 debuging hacks
Appears to be working now
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | src/drivers/ao_mpu6000.c | 5 |
1 files changed, 1 insertions, 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 |