Skip to content

Commit

Permalink
Merge pull request #40 from aligator/#38-wrong-extrusion
Browse files Browse the repository at this point in the history
#38 Set LayerThickness after first layer
  • Loading branch information
aligator authored Mar 29, 2021
2 parents d07f4bd + 3f7d54f commit 1490981
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gcode/renderer/layer.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ func (PreLayer) Render(b *gcode.Builder, layerNr int, maxLayer int, layer data.P

// force the InitialLayerSpeed for first layer
b.SetExtrudeSpeedOverride(options.Print.IntialLayerSpeed)
} else {
} else if layerNr == 1 {
b.SetExtrusion(options.Print.LayerThickness, options.Printer.ExtrusionWidth)
}

if layerNr > 0 {
b.DisableExtrudeSpeedOverride()
b.SetExtrudeSpeed(options.Print.LayerSpeed)
}
Expand Down

0 comments on commit 1490981

Please sign in to comment.