diff options
author | px4dev <px4@purgatory.org> | 2012-08-29 23:25:14 -0700 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2012-08-29 23:25:14 -0700 |
commit | 45885f15dcd730555a69b592983f22ab263b3baf (patch) | |
tree | 99754f55ecd0bd746fd9a88484c96abddd16f86b | |
parent | da3cd2435236d72f60b5b37e8736fd7b0aef7763 (diff) | |
download | px4-firmware-45885f15dcd730555a69b592983f22ab263b3baf.tar.gz px4-firmware-45885f15dcd730555a69b592983f22ab263b3baf.tar.bz2 px4-firmware-45885f15dcd730555a69b592983f22ab263b3baf.zip |
Fix the readout transfer size.
-rw-r--r-- | apps/drivers/l3gd20/l3gd20.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/drivers/l3gd20/l3gd20.cpp b/apps/drivers/l3gd20/l3gd20.cpp index b874c88fe..812cf418f 100644 --- a/apps/drivers/l3gd20/l3gd20.cpp +++ b/apps/drivers/l3gd20/l3gd20.cpp @@ -585,8 +585,6 @@ L3GD20::set_range(unsigned max_dps) _gyro_range_scale = _gyro_range_rad_s / 32768.0f; write_reg(ADDR_CTRL_REG4, bits); - /* XXX update scale factors */ - return OK; } @@ -669,7 +667,7 @@ L3GD20::measure() /* fetch data from the sensor */ raw_report.cmd = ADDR_OUT_TEMP | DIR_READ | ADDR_INCREMENT; - transfer((uint8_t *)&raw_report, (uint8_t *)&raw_report, sizeof(&raw_report)); + transfer((uint8_t *)&raw_report, (uint8_t *)&raw_report, sizeof(raw_report)); /* * 1) Scale raw value to SI units using scaling from datasheet. |