Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/mmo/cnc_status' into homing
Browse files Browse the repository at this point in the history
  • Loading branch information
mmouchous-ledger committed Apr 5, 2024
2 parents 322db2f + dcb125d commit bd1ab8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pystages/tic.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from .exceptions import ConnectionFailure


class TicVariable(tuple[int, int, bool], Enum):
class TicVariable(Enum):
"""
Variables which can be read using GET_VARIABLE command.
https://www.pololu.com/docs/0J71/7
Expand Down Expand Up @@ -220,7 +220,7 @@ def set_target_velocity(self, velocity: int):
self.write_32(TicCommand.SET_TARGET_VELOCITY, velocity)

def get_variable(self, variable: TicVariable) -> int:
offset, length, signed = variable
offset, length, signed = variable.value
return int.from_bytes(
self.block_read(TicCommand.GET_VARIABLE, offset, length),
"little",
Expand Down

0 comments on commit bd1ab8d

Please sign in to comment.