aboutsummaryrefslogtreecommitdiff
path: root/apps/drivers/mpu6000/mpu6000.cpp
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2012-08-25 13:14:32 -0700
committerpx4dev <px4@purgatory.org>2012-08-25 13:15:23 -0700
commite51b23d309c0d66f572d04832675f5f29c120211 (patch)
tree4114cb9205b62c3d738ea39e17b3bc7e0af9d538 /apps/drivers/mpu6000/mpu6000.cpp
parente5e2d7216c215acd8d59d76abfd55de5ea625019 (diff)
downloadpx4-firmware-e51b23d309c0d66f572d04832675f5f29c120211.tar.gz
px4-firmware-e51b23d309c0d66f572d04832675f5f29c120211.tar.bz2
px4-firmware-e51b23d309c0d66f572d04832675f5f29c120211.zip
Now that it's safe to perform SPI transfers from interrupt context, re-enable the mpu6000 auto-poller.
Diffstat (limited to 'apps/drivers/mpu6000/mpu6000.cpp')
-rw-r--r--apps/drivers/mpu6000/mpu6000.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/drivers/mpu6000/mpu6000.cpp b/apps/drivers/mpu6000/mpu6000.cpp
index 57713f40b..31e2b8888 100644
--- a/apps/drivers/mpu6000/mpu6000.cpp
+++ b/apps/drivers/mpu6000/mpu6000.cpp
@@ -889,17 +889,14 @@ start()
if (OK != g_dev->init())
goto fail;
-#if 0 /* XXX don't do this for now - the auto-poller is børked */
-
/* set the poll rate to default, starts automatic data collection */
fd = open(ACCEL_DEVICE_PATH, O_RDONLY);
if (fd < 0)
goto fail;
if (ioctl(fd, SENSORIOCSPOLLRATE, SENSOR_POLLRATE_DEFAULT) < 0)
goto fail;
-#endif
- exit(0);
+ exit(0);
fail:
if (g_dev != nullptr) {
delete g_dev;