ENH: resume addition cooling fan after filament change

During filament changing, additional cooling fan may
be closed to reduce strings. Force to resume after
changing filament.

This logic is same with part cooling fan.
So no side effect.

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I207c8692dbe5b0450ed0a3d11c4c9b70eda0e28c
This commit is contained in:
salt.wei authored and Lane.Wei committed 2022-10-20 19:34:37 +08:00
1 parent 2daf0ab5df
commit 4ef50375cb
1 file changed
+2
+2
View File
@@ -811,6 +811,8 @@ std::string CoolingBuffer::apply_layer_cooldown(
//BBS: force to write a fan speed command again
if (m_current_fan_speed != -1)
new_gcode += GCodeWriter::set_fan(m_config.gcode_flavor, m_current_fan_speed);
if (m_additional_fan_speed != -1)
new_gcode += GCodeWriter::set_additional_fan(m_additional_fan_speed);
}
else if (line->type & CoolingLine::TYPE_EXTRUDE_END) {
// Just remove this comment.