mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-18 01:20:34 +08:00
HealthAndArmingChecks: add unit tests for Report
This commit is contained in:
@@ -177,7 +177,7 @@ bool Report::report(bool is_armed, bool force)
|
||||
const hrt_abstime now = hrt_absolute_time();
|
||||
const bool has_difference = _had_unreported_difference || _results[0] != _results[1];
|
||||
|
||||
if (now - _last_report < min_reporting_interval && !force) {
|
||||
if (now - _last_report < _min_reporting_interval && !force) {
|
||||
if (has_difference) {
|
||||
_had_unreported_difference = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user