df_ms5611_wrapper: fix initialization of error_count & device_id

This commit is contained in:
Beat Küng
2018-06-20 07:33:46 +02:00
committed by Lorenz Meier
parent 4a0b41bbc0
commit 6a7751496b
@@ -153,6 +153,8 @@ int DfMS5611Wrapper::_publish(struct baro_sensor_data &data)
baro_report.pressure = data.pressure_pa / 100.0f; // convert to mbar
baro_report.temperature = data.temperature_c;
baro_report.error_count = data.error_counter;
baro_report.device_id = m_id.dev_id;
// TODO: when is this ever blocked?
if (!(m_pub_blocked)) {