lis3mdl : fill device ID, scale and range into uORB topic properly

This commit is contained in:
Mohammed Kabir 2017-05-23 18:12:57 +02:00 committed by Lorenz Meier
parent f97822155a
commit a11ef6be10
1 changed files with 3 additions and 0 deletions

View File

@ -911,6 +911,9 @@ LIS3MDL::collect()
/* this should be fairly close to the end of the measurement, so the best approximation of the time */
new_report.timestamp = hrt_absolute_time();
new_report.error_count = perf_event_count(_comms_errors);
new_report.range_ga = _range_ga;
new_report.scaling = _range_scale;
new_report.device_id = _device_id.devid;
/*
* @note We could read the status register here, which could tell us that