Skip to content

Commit

Permalink
Additional fixes for tower post-processing
Browse files Browse the repository at this point in the history
  • Loading branch information
kartchnb committed Oct 24, 2022
1 parent dfbfd8a commit 002ff51
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Postprocessing/FlowTower_PostProcessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

from UM.Logger import Logger
from UM.Application import Application
import re
from enum import Enum

__version__ = '1.0'
Expand Down
2 changes: 1 addition & 1 deletion Postprocessing/TravelSpeedTower_PostProcessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def execute(gcode, startValue, valueChange, sectionLayers, baseLayers, reference
# Modify lines specifying travel speed
if is_travel_speed_line(line):
# Determine the old speed setting in the gcode
oldSpeedResult = re.search(r'F(\d*)', line)
oldSpeedResult = re.search(r'F(\d+)', line.split(';')[0])
if oldSpeedResult:
oldSpeed = float(oldSpeedResult.group(1))

Expand Down

0 comments on commit 002ff51

Please sign in to comment.