Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
vegano1 committed Aug 7, 2024
2 parents 025e54e + 7250ed0 commit 69d3a58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions api/src/opentrons/hardware_control/backends/ot3controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,9 +494,9 @@ def update_feature_flags(self, feature_flags: HardwareFeatureFlags) -> None:
async def update_motor_status(self) -> None:
"""Retreieve motor and encoder status and position from all present nodes"""
motor_nodes = self._motor_nodes()
if motor_nodes:
response = await get_motor_position(self._messenger, motor_nodes)
self._handle_motor_status_response(response)
assert len(motor_nodes)
response = await get_motor_position(self._messenger, motor_nodes)
self._handle_motor_status_response(response)

async def update_motor_estimation(self, axes: Sequence[Axis]) -> None:
"""Update motor position estimation for commanded nodes, and update cache of data."""
Expand Down
2 changes: 1 addition & 1 deletion api/src/opentrons/hardware_control/modules/mod_abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def parse_fw_version(version: str) -> Version:
raise InvalidVersion()
except InvalidVersion:
device_version = parse("v0.0.0")
return cast(Version, device_version) # type: ignore [redundant-cast]
return cast(Version, device_version)


class AbstractModule(abc.ABC):
Expand Down

0 comments on commit 69d3a58

Please sign in to comment.