forked from Archive/PX4-Autopilot
DfBmp280Wrapper: initialise baro report
Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
parent
9cd03817b3
commit
f3c12bc7c7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue