mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-07 17:35:22 +08:00
drivers/lsm303d: Populate device ID in sensor topics
This commit is contained in:
committed by
Lorenz Meier
parent
14e2ea78b3
commit
cfaef7f433
@@ -1642,6 +1642,9 @@ LSM303D::measure()
|
||||
accel_report.scaling = _accel_range_scale;
|
||||
accel_report.range_m_s2 = _accel_range_m_s2;
|
||||
|
||||
/* TODO return unique hardware ID */
|
||||
accel_report.device_id = 0;
|
||||
|
||||
_accel_reports->force(&accel_report);
|
||||
|
||||
/* notify anyone waiting for data */
|
||||
|
||||
Reference in New Issue
Block a user