[ create a new paste ] login | about

Link: http://codepad.org/7UIQCa3k    [ raw code | fork ]

Plain Text, pasted on Aug 20:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/src/emc/usr_intf/axis/scripts/axis.py b/src/emc/usr_intf/axis/scripts/axis.py
index fb1122c..59ae288 100755
--- a/src/emc/usr_intf/axis/scripts/axis.py
+++ b/src/emc/usr_intf/axis/scripts/axis.py
@@ -2253,10 +2253,12 @@ class TclCommands(nf.TclCommands):
             doHoming=prompt_areyousure(_("Warning"),_("Axis is already homed, are you sure you want to re-home?"))
         if doHoming:
             c.home(-1)
+            ensure_mode(linuxcnc.MODE_MDI)
+            c.wait_complete()
             # clear G54 offset
-            clear_offset(1)
+            commands.clear_offset(1)
             # clear G55 offset
-            clear_offset(2)
+            commands.clear_offset(2)
 
     def unhome_all_axes(event=None):
         if not manual_ok(): return


Create a new paste based on this one


Comments: