mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-03 20:56:18 +02:00
The tray_info_idx field is a filament TYPE identifier (e.g., "GFA00" for generic PLA), not unique per spool. When multiple AMS trays are loaded with the same filament type, the previous code used find() which always returned the first match regardless of color. Now checks if tray_info_idx is unique among available trays: - If unique: use that tray as definitive match (existing behavior) - If not unique: fall back to color matching among matching trays Fixed in both backend (print_scheduler.py) and frontend (useFilamentMapping.ts). Closes #245