Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
fix for framing calculation when G90/G91 are on same line as other G commands
  • Loading branch information
synman authored Jan 12, 2022
1 parent 041c30f commit cd534bc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions octoprint_bettergrblsupport/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,12 +588,10 @@ def on_event(self, event, payload):
if "G90" in command.upper():
# absolute positioning
positioning = 0
continue

if "G91" in command.upper():
# relative positioning
positioning = 1
continue

# match = re.search(r"^G([0][0123]|[0123])(\D.*[Xx]|[Xx])\ *(-?[\d.]+).*", command)
match = re.search(r".*[X]\ *(-?[\d.]+).*", command)
Expand Down

0 comments on commit cd534bc

Please sign in to comment.