fixed changes of startup position
This commit is contained in:
parent
15b6a9b488
commit
3196747cd9
1 changed files with 3 additions and 1 deletions
|
@ -141,7 +141,7 @@ class GCodeFilter(object):
|
|||
class PositionHandler(object):
|
||||
|
||||
def __init__(self):
|
||||
self.pos = tuple([0] * len(AXIS))
|
||||
self.pos = tuple([None] * len(AXIS))
|
||||
self.stack = [tuple(self.pos)]
|
||||
|
||||
def push(self, position):
|
||||
|
@ -160,6 +160,8 @@ class PositionHandler(object):
|
|||
|
||||
def get_changed_axes(self, position):
|
||||
for i, axis in enumerate(AXIS):
|
||||
if self.pos[i] is None:
|
||||
continue
|
||||
if position[i] != self.pos[i]:
|
||||
yield (i, axis)
|
||||
|
||||
|
|
Loading…
Reference in a new issue