Commit Graph
1 Commits
Author SHA1 Message Date
ccatlett1984 54f46ca3b0 Fix Snapmaker filament sync: nozzle temperature, invented material types, and a crash on an empty spool colour (#16300)
Fixes five problems in how the Snapmaker agent turns the printer's filament data into AMS trays.

- Read the nozzle temperature from HOTEND_MAX_TEMP instead of FIRST_LAYER_TEMP, which external tag readers never set. Slots with no vendor now get their temperatures too.
- Return the base material type for finish sub types, instead of names like PLA SILK that aren't valid filament types. Fold a fiber loading into the plain fiber, so PA12 with CF10 gives PA12-CF.
- Match the vendor by whole word in either direction, and stop a preset with no color from ranking as black.
- Prefer a preset whose name carries the spool's sub type. When no preset matches the spool's vendor, try Orca's Generic presets before the type-only fallback.
- Fix a crash on a spool with an empty color.

Adds tests in tests/slic3rutils/test_snapmaker_filament_match.cpp.
2026-11-10 20:04:27 -06:00