mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-04 14:40:34 +08:00
df_ms5611_wrapper: fix initialization of error_count & device_id
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user