diff options
author | Andrew Tridgell <tridge@samba.org> | 2013-09-12 16:21:59 +1000 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-09-12 09:26:49 +0200 |
commit | 4893509344f9304060dabc8a9ecad28fe891dcf8 (patch) | |
tree | 6dd11e99adba8f4163a7a4274181a9ca85fd755c /src/drivers/ms5611 | |
parent | c9b8a019eaae6ee7daf11835602059199369544e (diff) | |
download | px4-firmware-4893509344f9304060dabc8a9ecad28fe891dcf8.tar.gz px4-firmware-4893509344f9304060dabc8a9ecad28fe891dcf8.tar.bz2 px4-firmware-4893509344f9304060dabc8a9ecad28fe891dcf8.zip |
drivers: report error_count in drivers where possible
Diffstat (limited to 'src/drivers/ms5611')
-rw-r--r-- | src/drivers/ms5611/ms5611.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/ms5611/ms5611.cpp b/src/drivers/ms5611/ms5611.cpp index 1c8a4d776..938786d3f 100644 --- a/src/drivers/ms5611/ms5611.cpp +++ b/src/drivers/ms5611/ms5611.cpp @@ -573,6 +573,7 @@ MS5611::collect() struct baro_report report; /* this should be fairly close to the end of the conversion, so the best approximation of the time */ report.timestamp = hrt_absolute_time(); + report.error_count = perf_event_count(_comms_errors); /* read the most recent measurement - read offset/size are hardcoded in the interface */ ret = _interface->read(0, (void *)&raw, 0); |