Skip to content

Commit

Permalink
Update panther_power_control/src/relays_node.py
Browse files Browse the repository at this point in the history
Co-authored-by: rafal-gorecki <[email protected]>
  • Loading branch information
Kotochleb and rafal-gorecki authored Jul 6, 2023
1 parent 1f0a26e commit 88736e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions panther_power_control/src/relays_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ def _set_motor_state_timer_cb(self, *args) -> None:
self._lines['MOTOR_ON'].set_value(state_to_set)
self._publish_motor_state(state_to_set)

def _publish_motor_state(self, val: bool) -> None:
if self._io_state.motor_on != val:
self._io_state.motor_on = val
def _publish_motor_state(self, desired_state: bool) -> None:
if self._io_state.motor_on != desired_state:
self._io_state.motor_on = desired_state
self._io_state_pub.publish(self._io_state)


Expand Down

0 comments on commit 88736e7

Please sign in to comment.