fix reading baro values from simulator

This commit is contained in:
tumbili
2015-06-08 22:21:59 -07:00
committed by Mark Charlebois
parent 8eee7ba321
commit 5694e37854
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -640,7 +640,7 @@ BAROSIM::collect()
report.error_count = perf_event_count(_comms_errors);
/* read the most recent measurement - read offset/size are hardcoded in the interface */
ret = _interface->dev_read(0, (void *)&baro_report, 0);
ret = _interface->dev_read(0, (void *)&baro_report, sizeof(baro_report));
if (ret < 0) {
perf_count(_comms_errors);
perf_end(_sample_perf);