fix assert fail in cooling buffer, clamp fan speed low limit must be same or smaller than high limit

This commit is contained in:
PavelMikus 2023-03-03 14:03:23 +01:00
parent 65ab83d6a9
commit 8f10943b69

View File

@ -798,6 +798,7 @@ std::string CoolingBuffer::apply_layer_cooldown(
m_fan_speed = fan_speed_new;
new_gcode += GCodeWriter::set_fan(m_config.gcode_flavor, m_config.gcode_comments, m_fan_speed);
}
custom_fan_speed_limits.first = std::min(custom_fan_speed_limits.first, custom_fan_speed_limits.second);
return custom_fan_speed_limits;
};