Skip to content

Commit 5fa8475

Browse files
committed
qtvcp -touchoff_subprogram: fix typos so it works properly.
It returned bad data and never did the second probing.
1 parent 2fa39bb commit 5fa8475

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/python/qtvcp/lib/touchoff_subprogram.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ def process(self):
9393
sys.stdout.write("ERROR Touchoff returned with error from cmd:{}\n".format(cmd))
9494
else:
9595
self.collect_status()
96-
sys.stdout.write("{} COMPLETE {}\n".format(cmd.rstrip().split('$')[0], self.string_to_send))
96+
sys.stdout.write("{} COMPLETE$ {}\n".format(cmd.rstrip().split('$')[0], self.string_to_send))
9797
else:
98-
sys.stdout.write("COMPLETE returned FROM COMMAND:{}\n".format(cmd))
98+
sys.stdout.write("COMPLETE$ returned FROM COMMAND:{}\n".format(cmd))
9999
sys.stdout.flush()
100100
except KeyboardInterrupt:
101101
break
@@ -206,7 +206,7 @@ def probe_z(self):
206206

207207
error = self.probe_down()
208208
ACTION.CALL_MDI("G90")
209-
if error != 0: return error
209+
if error != 1: return error
210210

211211
pos = STATUS.get_probed_position_with_offsets()
212212
self.status_z1 = float(pos[2])

0 commit comments

Comments
 (0)