From 108659d20812d45f67e3b7a52ba5e781e227065e Mon Sep 17 00:00:00 2001 From: ayin21 Date: Fri, 19 Jul 2024 08:46:30 +0000 Subject: [PATCH] fix typo --- game_controller_hl/game_controller_hl/receiver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game_controller_hl/game_controller_hl/receiver.py b/game_controller_hl/game_controller_hl/receiver.py index cf734ba..c2fbc57 100755 --- a/game_controller_hl/game_controller_hl/receiver.py +++ b/game_controller_hl/game_controller_hl/receiver.py @@ -135,7 +135,7 @@ def receive_and_answer_once(self): except IOError as e: self.get_logger().warn(f"Error while sending keep-alive: {str(e)}") - def publish_diagnostics(self, reiceved_message_lately: bool): + def publish_diagnostics(self, received_message_lately: bool): """ This publishes a Diagnostics Array. """ @@ -146,7 +146,7 @@ def publish_diagnostics(self, reiceved_message_lately: bool): #configure DiagnosticStatus message diag = DiagnosticStatus(name = "Game Controller", hardware_id = "Game Controller" ) - if not reiceved_message_lately: + if not received_message_lately: diag.message = "Lost connection to game controller for " + str(int(self.get_time_since_last_package().nanoseconds/1e9)) + " sec" diag.level = DiagnosticStatus.WARN else: