Skip to content

Commit f3e2ed2

Browse files
committed
qtvcp -probe_sub routine: always record the motion modes
if the moion mode and machine mode were the same, we didn't record the motion modes, so when we tried to restore the modes 0 there was an error.
1 parent fa57dc6 commit f3e2ed2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/python/qtvcp/widgets/probe_subprog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,12 @@ def collect_status(self):
216216

217217
# need to be in the right mode - entries are in machine units
218218
def prechecks(self):
219+
ACTION.CALL_MDI('M70')
219220
if INFO.MACHINE_IS_METRIC and STATUS.is_metric_mode():
220221
return None
221222
if not INFO.MACHINE_IS_METRIC and not STATUS.is_metric_mode():
222223
return None
223224
# record motion modes
224-
ACTION.CALL_MDI('M70')
225225
if INFO.MACHINE_IS_METRIC:
226226
ACTION.CALL_MDI('g21')
227227
else:

0 commit comments

Comments
 (0)