mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-08 23:21:58 +02:00
The Printers page rendered three fan widgets (part / aux / chamber) for every printer unconditionally. Open-frame models (A1, A1 Mini, A2L, P1P) have no chamber fan — the firmware reports big_fan2_speed as 0, so the badge always rendered greyed-out and let users "set" a fan speed on hardware that doesn't exist. Adds MODELS_WITH_CHAMBER_FAN allowlist (X1C / X1 / X1E / X2D / P1S / P2S / H2D / H2D Pro / H2C / H2S) near mapModelCode, and the chamber entry is spread into fanItems only when the printer's model is in the set. Open-frame printers now show two badges (part + aux), which matches their actual hardware. Allowlist not denylist: mirrors the file's existing classification pattern (the enclosure-door badge gate uses the same shape), and the failure mode is preferable — a missing badge on a real chambered printer is obvious; a phantom badge on a future open-frame model would look correct and silently lie.