Skip to content

Commit

Permalink
Fixup!
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferry Schoenmakers committed Apr 29, 2024
1 parent 834e25e commit f2c31eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion diagnostic_aggregator/src/aggregator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ void Aggregator::publishData()
diag_toplevel_state.values = msg_to_report->values;
}

non_ok_status_depth = 0;
std::vector<std::shared_ptr<DiagnosticStatus>> processed_other =
other_analyzer_->report();
for (const auto & msg : processed_other) {
Expand Down Expand Up @@ -292,7 +293,7 @@ void Aggregator::publishData()
agg_pub_->publish(diag_array);

if (
diag_toplevel_state.level == diagnostic_msgs::msg::DiagnosticStatus::STALE &&
max_level == diagnostic_msgs::msg::DiagnosticStatus::STALE &&
max_level_without_stale < diagnostic_msgs::msg::DiagnosticStatus::ERROR) {
diag_toplevel_state.level = diagnostic_msgs::msg::DiagnosticStatus::STALE;
} else {
Expand Down

0 comments on commit f2c31eb

Please sign in to comment.