Skip to content

Commit

Permalink
Fix logic error in linear stage thread
Browse files Browse the repository at this point in the history
  • Loading branch information
slactjohnson committed Aug 2, 2024
1 parent 0fdc61a commit 4551b6c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions btms_ui/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,12 @@ def run(self):
else:
break

if all([
self._linear_pos_valid(lin_pos[0], lin_pos[1]),
self._linear_pos_valid(lin_pos[1], lin_pos[2])
]):
self.success()
if not self.stopped():
if all([
self._linear_pos_valid(lin_pos[0], lin_pos[1]),
self._linear_pos_valid(lin_pos[1], lin_pos[2])
]):
self.success()
self._finished.emit()


Expand Down

0 comments on commit 4551b6c

Please sign in to comment.