Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ayin21 committed Jul 19, 2024
1 parent 468b7a8 commit 108659d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions game_controller_hl/game_controller_hl/receiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand All @@ -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:
Expand Down

0 comments on commit 108659d

Please sign in to comment.