We need to init the gyro subdevice, or there is no device node. Oops.

This commit is contained in:
px4dev 2012-08-23 20:32:13 -07:00
parent 295e9da1ba
commit f28a757f92
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}