Skip to content

Commit

Permalink
fix: turn off fans if fans are disabled (CURA-2603)
Browse files Browse the repository at this point in the history
  • Loading branch information
BagelOrb committed Oct 11, 2016
1 parent 1574292 commit c0495ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/FffGcodeWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ void FffGcodeWriter::setConfigFanSpeedLayerTime(SliceDataStorage& storage)
fan_speed_layer_time_settings.cool_fan_speed_max = train->getSettingInPercentage("cool_fan_speed_max");
fan_speed_layer_time_settings.cool_min_speed = train->getSettingInMillimetersPerSecond("cool_min_speed");
fan_speed_layer_time_settings.cool_fan_full_layer = train->getSettingAsLayerNumber("cool_fan_full_layer");
if (!train->getSettingBoolean("cool_fan_enabled"))
{
fan_speed_layer_time_settings.cool_fan_speed_min = 0;
fan_speed_layer_time_settings.cool_fan_speed_max = 0;
}
}
}

Expand Down

0 comments on commit c0495ed

Please sign in to comment.