MK4-specific tweaks can now also be enabled by RAMMING_EXTRA in printer notes

This commit is contained in:
Lukas Matena 2025-02-17 12:19:34 +01:00
parent cf99f517d5
commit e1008ac879

View File

@ -586,7 +586,10 @@ WipeTower::WipeTower(const Vec2f& pos, double rotation_deg, const PrintConfig& c
m_set_extruder_trimpot = config.high_current_on_filament_swap; m_set_extruder_trimpot = config.high_current_on_filament_swap;
} }
m_is_mk4mmu3 = boost::icontains(config.printer_notes.value, "PRINTER_MODEL_MK4") && boost::icontains(config.printer_notes.value, "MMU"); m_is_mk4mmu3 = boost::icontains(config.printer_notes.value, "RAMMING_EXTRA")
// Before 2.9.1, the condition was tied to different keywords. We need to keep that so we don't break existing projects:
|| (boost::icontains(config.printer_notes.value, "PRINTER_MODEL_MK4") && boost::icontains(config.printer_notes.value, "MMU"));
m_switch_filament_monitoring = m_is_mk4mmu3 || is_XL_printer(config); m_switch_filament_monitoring = m_is_mk4mmu3 || is_XL_printer(config);
// Calculate where the priming lines should be - very naive test not detecting parallelograms etc. // Calculate where the priming lines should be - very naive test not detecting parallelograms etc.