mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 23:33:34 +08:00
Driver compile fixes
This commit is contained in:
@@ -1643,7 +1643,7 @@ LSM303D::measure()
|
||||
accel_report.range_m_s2 = _accel_range_m_s2;
|
||||
|
||||
/* return device ID */
|
||||
accel_report.device_id = _device_id;
|
||||
accel_report.device_id = _device_id.devid;
|
||||
|
||||
_accel_reports->force(&accel_report);
|
||||
|
||||
@@ -1729,7 +1729,7 @@ LSM303D::mag_measure()
|
||||
*/
|
||||
_last_temperature = 25 + (raw_mag_report.temperature * 0.125f);
|
||||
mag_report.temperature = _last_temperature;
|
||||
mag_report.device_id = _mag->_device_id;
|
||||
mag_report.device_id = _mag->_device_id.devid;
|
||||
|
||||
_mag_reports->force(&mag_report);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user