Skip to content

Instantly share code, notes, and snippets.

@alexanderguy
Created April 11, 2016 22:26
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/dac912e151cffdd29268fbb73b8dbd7c to your computer and use it in GitHub Desktop.
Save alexanderguy/dac912e151cffdd29268fbb73b8dbd7c 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