posix drivers: Populate baro device ID

TODO - use unique HW ID
This commit is contained in:
Paul Riseborough
2017-01-19 19:24:52 +01:00
committed by Lorenz Meier
parent 0ba31b521c
commit c21b4aaf2e
4 changed files with 12 additions and 1 deletions
@@ -680,6 +680,9 @@ BAROSIM::collect()
report.altitude = raw_baro.altitude;
report.temperature = raw_baro.temperature;
/* TODO get device ID for sensor */
report.device_id = 0;
/* publish it */
if (!(m_pub_blocked)) {
if (_baro_topic != nullptr) {