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 (#582)
Browse files Browse the repository at this point in the history
Signed-off-by: Hayato Mizushima <[email protected]>
  • Loading branch information
hayato-m126 authored Nov 1, 2024
1 parent f5030f0 commit a89298e
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 a89298e

Please sign in to comment.