Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
fix: condition to judge diag name
Browse files Browse the repository at this point in the history
Signed-off-by: Hayato Mizushima <[email protected]>
  • Loading branch information
hayato-m126 committed Nov 1, 2024
1 parent f5030f0 commit 57eb826
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def diag_cb(self, msg: DiagnosticArray) -> None:
if len(msg.status) == 0:
return
diag_status: DiagnosticStatus = msg.status[0]
if diag_status.name == TARGET_DIAG_NAME:
if diag_status.name != TARGET_DIAG_NAME:
return
if diag_status.level >= DiagnosticStatus.ERROR:
self.__topic_rate = False
Expand Down

0 comments on commit 57eb826

Please sign in to comment.