Browse Source

Baro sim: Ensure struct is initialized to zero

sbg
Lorenz Meier 9 years ago
parent
commit
c140c2b59c
  1. 2
      src/platforms/posix/drivers/barosim/baro.cpp

2
src/platforms/posix/drivers/barosim/baro.cpp

@ -662,7 +662,7 @@ BAROSIM::collect()
perf_begin(_sample_perf); perf_begin(_sample_perf);
struct baro_report report; struct baro_report report = {};
/* this should be fairly close to the end of the conversion, so the best approximation of the time */ /* this should be fairly close to the end of the conversion, so the best approximation of the time */
report.timestamp = hrt_absolute_time(); report.timestamp = hrt_absolute_time();
report.error_count = perf_event_count(_comms_errors); report.error_count = perf_event_count(_comms_errors);

Loading…
Cancel
Save