From e51b23d309c0d66f572d04832675f5f29c120211 Mon Sep 17 00:00:00 2001 From: px4dev Date: Sat, 25 Aug 2012 13:14:32 -0700 Subject: Now that it's safe to perform SPI transfers from interrupt context, re-enable the mpu6000 auto-poller. --- apps/drivers/mpu6000/mpu6000.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'apps/drivers/mpu6000/mpu6000.cpp') 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; -- cgit v1.2.3