Skip to content

Commit 6b27f23

Browse files
committed
change move to not retunr till complete. Fixes cockpit issue #844
1 parent 762bc07 commit 6b27f23

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

microscope/controllers/ludl.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,13 @@ def move_command(self, command: bytes) -> None:
200200
# Movement commands respond with ":A \n" but the move is then
201201
# being performed. The move is only finihsed once the
202202
# "STATUS" command returns "N" rather than "B"
203-
# self._command_and_validate(command, b"N")
203+
self._command_and_validate(command, b"N")
204204
#
205+
# No Following is not true as Cockpit expects moves to happen
206+
# before the return.
205207
# actully beter to just issue the move command and rely on
206208
# other process to check position
207-
self.get_command(command)
209+
#self.get_command(command)
208210

209211
def move_by_relative_position(self, axis: bytes, delta: float) -> None:
210212
"""Send a relative movement command to stated axis"""

0 commit comments

Comments
 (0)