Skip to content

Commit

Permalink
Fixed typo current
Browse files Browse the repository at this point in the history
  • Loading branch information
iory committed Nov 4, 2024
1 parent 5ec7f53 commit f6df79d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rcb4/armh7interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -1449,7 +1449,7 @@ def servo_states(self):
return servo_on_ids
return []

def switch_reading_servo_crreunt(self, enable=True):
def switch_reading_servo_current(self, enable=True):
if enable:
value = 1
else:
Expand Down
4 changes: 2 additions & 2 deletions ros/kxr_controller/node_scripts/rcb4_ros_bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def log_error_and_close_interface(function_name):
return False

if self.read_current:
serial_call_with_retry(self.interface.switch_reading_servo_crreunt, enable=True, max_retries=3)
serial_call_with_retry(self.interface.switch_reading_servo_current, enable=True, max_retries=3)
if self.read_temperature:
serial_call_with_retry(self.interface.switch_reading_servo_temperature, enable=True, max_retries=3)

Expand Down Expand Up @@ -1021,7 +1021,7 @@ def reinitialize_interface(self):
self.interface.close()
self.interface = self.setup_interface()
if self.read_current:
serial_call_with_retry(self.interface.switch_reading_servo_crreunt, enable=True, max_retries=3)
serial_call_with_retry(self.interface.switch_reading_servo_current, enable=True, max_retries=3)
if self.read_temperature:
serial_call_with_retry(self.interface.switch_reading_servo_temperature, enable=True, max_retries=3)
self.subscribe()
Expand Down

0 comments on commit f6df79d

Please sign in to comment.