Skip to content

Commit edfd9d4

Browse files
rburemagithub-actions[bot]
authored andcommitted
Apply clang-format
1 parent d3c026f commit edfd9d4

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/LayerPlan.cpp

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3009,8 +3009,8 @@ void LayerPlan::writeGCode(GCodeExport& gcode)
30093009
gcode.writeComment(ss.str());
30103010
}
30113011

3012-
if (! (path.spiralize || spiralize_finisher) && path.travel_to_z && (! path.retract || ! path.perform_z_hop) && (z_ + path.z_offset + path.points.front().z_ != gcode.getPositionZ())
3013-
&& (path_idx > 0 || layer_nr_ > 0))
3012+
if (! (path.spiralize || spiralize_finisher) && path.travel_to_z && (! path.retract || ! path.perform_z_hop)
3013+
&& (z_ + path.z_offset + path.points.front().z_ != gcode.getPositionZ()) && (path_idx > 0 || layer_nr_ > 0))
30143014
{
30153015
// First move to desired height to then make a plain horizontal move
30163016
gcode.writeTravel(Point3LL(gcode.getPosition().x_, gcode.getPosition().y_, z_ + path.z_offset + path.points.front().z_), speed);
@@ -3067,14 +3067,7 @@ void LayerPlan::writeGCode(GCodeExport& gcode)
30673067
insertTempOnTime(time, path_idx);
30683068

30693069
const double extrude_speed = speed * path.speed_back_pressure_factor;
3070-
writeExtrusionRelativeZ(
3071-
gcode,
3072-
pt,
3073-
extrude_speed,
3074-
path.z_offset,
3075-
path.getExtrusionMM3perMM(),
3076-
path.config.type,
3077-
update_extrusion_offset);
3070+
writeExtrusionRelativeZ(gcode, pt, extrude_speed, path.z_offset, path.getExtrusionMM3perMM(), path.config.type, update_extrusion_offset);
30783071
sendLineTo(path, pt, extrude_speed);
30793072

30803073
prev_point = path.points[point_idx];

0 commit comments

Comments
 (0)