mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-30 19:21:33 +02:00
When the snow field hadn't arrived yet, the ams_extruder_map fallback computed ams_id * 4 + slot for AMS-HT units (128-135), producing invalid tray IDs like 512+. AMS-HT has a single slot; global ID = unit ID. - Single-AMS fallback: return ams_id directly for AMS-HT (128-135) - Multi-AMS matching: decompose AMS-HT trays correctly (slot=0) - Multi-AMS narrowing: slot > 0 eliminates AMS-HT candidates - last_loaded_tray: tighten to valid IDs only (0-15, 128-135, 254) - Add 10 tests for AMS-HT fallback and last_loaded_tray validation