mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-30 11:12:35 +02:00
When a spool runs empty mid-print and the AMS auto-switches to a backup, the entire print weight was attributed to the original spool. Track tray changes during the print via tray_change_log on PrinterState, then split the 3MF weight across trays using per-layer gcode segment boundaries at print completion. Falls back to linear layer-ratio splitting when gcode data is unavailable.