refactor commander: remove unused argument is_armed in Report class

This commit is contained in:
Beat Küng
2024-11-20 14:37:35 +01:00
committed by Matthias Grob
parent be300b767d
commit 8ccd43dc1b
4 changed files with 15 additions and 15 deletions
@@ -67,7 +67,7 @@ bool HealthAndArmingChecks::update(bool force_reporting, bool is_arming_request)
}
const bool results_changed = _reporter.finalize();
const bool reported = _reporter.report(_context.isArmed(), force_reporting);
const bool reported = _reporter.report(force_reporting);
if (reported) {
@@ -89,7 +89,7 @@ bool HealthAndArmingChecks::update(bool force_reporting, bool is_arming_request)
}
_reporter.finalize();
_reporter.report(_context.isArmed(), false);
_reporter.report(false);
_reporter._mavlink_log_pub = nullptr;
// LEGACY end
@@ -123,5 +123,5 @@ void HealthAndArmingChecks::updateParams()
bool HealthAndArmingChecks::reportIfUnreportedDifferences()
{
return _reporter.reportIfUnreportedDifferences(_context.isArmed());
return _reporter.reportIfUnreportedDifferences();
}