Skip to content

Commit

Permalink
Always have max level and related message as summary
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferry Schoenmakers committed Aug 31, 2023
1 parent 1062103 commit 13ef68d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rosboard/html/js/viewers/DiagnosticViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ class DiagnosticViewer extends Viewer {
let status = {}
if (this.diagnosticStatuses.hasOwnProperty(idx_name)) {
status = this.diagnosticStatuses[idx_name];
if (msg.status[i].level > status["_level"]) {
status["_level"] = msg.status[i].level;
status["_message"] = msg.status[i].message;
}
} else {
status["_level"] = msg.status[i].level;
status["_name"] = idx_name;
Expand Down

0 comments on commit 13ef68d

Please sign in to comment.