drivers: report error_count in drivers where possible

This commit is contained in:
Andrew Tridgell
2013-09-12 09:26:49 +02:00
committed by Lorenz Meier
parent c9b8a019ea
commit 4893509344
9 changed files with 19 additions and 14 deletions
+1
View File
@@ -791,6 +791,7 @@ HMC5883::collect()
/* this should be fairly close to the end of the measurement, so the best approximation of the time */
new_report.timestamp = hrt_absolute_time();
new_report.error_count = perf_event_count(_comms_errors);
/*
* @note We could read the status register here, which could tell us that