MS5611: Fix device ID

This commit is contained in:
Lorenz Meier 2017-01-17 12:03:19 +01:00
parent 9860a17e25
commit 171c321acc

View File

@ -762,8 +762,8 @@ MS5611::collect()
report.temperature = _TEMP / 100.0f;
report.pressure = P / 100.0f; /* convert to millibar */
/* TODO get device ID for sensor */
report.device_id = 0;
/* return device ID */
report.device_id = _device_id;
/* altitude calculations based on http://www.kansasflyer.org/index.asp?nav=Avi&sec=Alti&tab=Theory&pg=1 */