File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ])
You can’t perform that action at this time.
0 commit comments