Skip to content

Commit 14fd201

Browse files
committed
Touchy: Don't look for UNITS in AXIS_X
If anything it is a JOINT property, but [TRAJ] should be used.
1 parent b6f3cda commit 14fd201

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/emc/usr_intf/touchy/touchy.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,10 @@ def __init__(self, inifile):
258258
units=self.ini.find("TRAJ","LINEAR_UNITS")
259259

260260
if units==None:
261-
units=self.ini.find("AXIS_X","UNITS")
261+
# complain to user
262+
print("No [TRAJ]UNITS INI file entry, assuming inch")
263+
# Regrettably this has always been the default
264+
units = "inch"
262265

263266
if units=="mm" or units=="metric" or units == "1.0":
264267
self.machine_units_mm=1

0 commit comments

Comments
 (0)