From f28a757f9297483099feccc1e4e5c4b6f8be7d8d Mon Sep 17 00:00:00 2001 From: px4dev Date: Thu, 23 Aug 2012 20:32:13 -0700 Subject: [PATCH] We need to init the gyro subdevice, or there is no device node. Oops. --- apps/drivers/mpu6000/mpu6000.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/drivers/mpu6000/mpu6000.cpp b/apps/drivers/mpu6000/mpu6000.cpp index b86e2da2fc..e49a2ed9f1 100644 --- a/apps/drivers/mpu6000/mpu6000.cpp +++ b/apps/drivers/mpu6000/mpu6000.cpp @@ -430,6 +430,8 @@ MPU6000::init() // write_reg(MPUREG_PWR_MGMT_1,MPU_CLK_SEL_PLLGYROZ); usleep(1000); + /* do CDev init for the gyro device node */ + ret = _gyro->init(); return ret; }