diff options
author | px4dev <px4@purgatory.org> | 2012-08-23 20:32:13 -0700 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2012-08-23 20:32:13 -0700 |
commit | f28a757f9297483099feccc1e4e5c4b6f8be7d8d (patch) | |
tree | 7da85bb317aa3ef72f067acf7474f5f090bd34dc | |
parent | 295e9da1bac6598d91efeba10b0302fdee19ac0d (diff) | |
download | px4-firmware-f28a757f9297483099feccc1e4e5c4b6f8be7d8d.tar.gz px4-firmware-f28a757f9297483099feccc1e4e5c4b6f8be7d8d.tar.bz2 px4-firmware-f28a757f9297483099feccc1e4e5c4b6f8be7d8d.zip |
We need to init the gyro subdevice, or there is no device node. Oops.
-rw-r--r-- | apps/drivers/mpu6000/mpu6000.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/drivers/mpu6000/mpu6000.cpp b/apps/drivers/mpu6000/mpu6000.cpp index b86e2da2f..e49a2ed9f 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; } |