Bug fix: Check for air filtration support on the printer level before emitting air filtration gcode command (#8681)

* Check for air filtration support on the printer level before emitting air filtration gcode command

* Merge branch 'main' into Check-air-filtration-support-at-the-printer-level-too
This commit is contained in:
Ioannis Giannakas 2025-03-06 12:32:30 +00:00 committed by GitHub
parent 9a0ce083a4
commit 22e410f82d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2412,6 +2412,9 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato
during_print_exhaust_fan_speed = std::max(during_print_exhaust_fan_speed,
m_config.during_print_exhaust_fan_speed.get_at(extruder.id()));
}
// ORCA: If the printer profile doesnt support air filtration, ignore filament setting
if(!m_config.support_air_filtration)
activate_air_filtration = false;
if (activate_air_filtration)
file.write(m_writer.set_exhaust_fan(during_print_exhaust_fan_speed, true));