mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 03:23:33 +08:00
mpu9250 : fill correct device ID into uORB topic
This commit is contained in:
committed by
Lorenz Meier
parent
d7611cac89
commit
302e2372cf
@@ -227,7 +227,7 @@ MPU9250_mag::_measure(struct ak8963_regs data)
|
||||
mrb.range_ga = 48.0f;
|
||||
mrb.scaling = _mag_range_scale;
|
||||
mrb.temperature = _parent->_last_temperature;
|
||||
mrb.device_id = _parent->get_device_id().devid;
|
||||
mrb.device_id = _parent->_mag->_device_id.devid;
|
||||
|
||||
mrb.error_count = perf_event_count(_mag_errors);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user