Skip to content

Commit 194cd80

Browse files
authored
Merge pull request #3864 from Sigma1912/patch-1
Gremlin: Fix wrong scope of variables
2 parents 878f171 + 2e41bff commit 194cd80

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/emc/usr_intf/gremlin/gremlin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,9 @@ def load(self,filename = None):
331331
for i in range(9):
332332
if s.axis_mask & (1<<i):
333333
axis = "XYZABCUVW"[i]
334-
if (axis == "A" and a_axis_wrapped) or\
335-
(axis == "B" and b_axis_wrapped) or\
336-
(axis == "C" and c_axis_wrapped):
334+
if (axis == "A" and self.a_axis_wrapped) or\
335+
(axis == "B" and self.b_axis_wrapped) or\
336+
(axis == "C" and self.c_axis_wrapped):
337337
pos = s.position[i] % 360.000
338338
else:
339339
pos = s.position[i]

0 commit comments

Comments
 (0)