Skip to content

Instantly share code, notes, and snippets.

@alexanderguy
Created August 18, 2016 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexanderguy/2e8997b6d63188852728a0f39d918e88 to your computer and use it in GitHub Desktop.
Save alexanderguy/2e8997b6d63188852728a0f39d918e88 to your computer and use it in GitHub Desktop.
diff --git a/src/emc/usr_intf/axis/scripts/axis.py b/src/emc/usr_intf/axis/scripts/axis.py
index 9611a27..0ab0de8 100755
--- a/src/emc/usr_intf/axis/scripts/axis.py
+++ b/src/emc/usr_intf/axis/scripts/axis.py
@@ -2557,6 +2557,9 @@ class TclCommands(nf.TclCommands):
commands.set_view_z()
def axis_activated(*args):
+ if vars.current_axis.get() == "True":
+ vars.current_axis.set("y")
+
if not hal_present: return # this only makes sense if HAL is present on this machine
comp['jog.x'] = vars.current_axis.get() == "x"
comp['jog.y'] = vars.current_axis.get() == "y"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment