DfBmp280Wrapper: initialise baro report

Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
Roman 2018-05-18 10:03:19 +02:00 committed by Daniel Agar
parent 9cd03817b3
commit f3c12bc7c7
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ int DfBmp280Wrapper::_publish(struct baro_sensor_data &data)
{
perf_begin(_baro_sample_perf);
baro_report baro_report;
baro_report baro_report = {};
baro_report.timestamp = hrt_absolute_time();
baro_report.pressure = data.pressure_pa / 100.0f; // to mbar