Skip to content

Commit

Permalink
Fix final travel move using default fan speed
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasRahm committed Nov 9, 2023
1 parent 404c35d commit 3bae851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LayerPlan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1949,7 +1949,7 @@ void LayerPlan::writeGCode(GCodeExport& gcode)

// Fans need time to reach the new setting. Adjust fan speed as early as possible. If travel paths have a non default fan speed for some reason set it as fan speed.
// As such modification could be made by a plugin.
if(!path.isTravelPath() || path.fan_speed < 0)
if(!path.isTravelPath() || path.fan_speed >= 0)
{
const double path_fan_speed = path.getFanSpeed();
gcode.writeFanCommand(path_fan_speed != GCodePathConfig::FAN_SPEED_DEFAULT ? path_fan_speed : extruder_plan.getFanSpeed());
Expand Down

0 comments on commit 3bae851

Please sign in to comment.