mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-05-09 05:35:30 +02:00
[GH-ISSUE #765] [Bug]: Spools are removed from the AMS 2 Pro #512
Labels
No labels
A1
automated
automated
bug
bug
Closed due to inactivity
contrib
dependencies
dependencies
duplicate
enhancement
feedback
hold
invalid
Notes
P1S
pull-request
security
security
ThumbsUp
user-report
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bambuddy#512
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pichler583-cell on GitHub (Mar 20, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/765
Originally assigned to: @maziggy on GitHub.
Bug Description
Spools are removed from the AMS 2 Pro slot assignment after the printer is restarted. Additionally, the slot configuration is reset, requiring all spools and their configurations to be reassigned each time the printer is powered on.
Expected Behavior
Filament and slot assignments should be retained after printer restart.
Steps to Reproduce
Printer Model
P2S
Bambuddy Version
Daily
Printer Firmware Version
01.01.50.40
Installation Method
Docker
Operating System
Linux (Ubuntu/Debian)
Relevant Logs / Support Package
bambuddy-support-20260320-140731.zip
Screenshots
Additional Context
No response
Checklist
@maziggy commented on GitHub (Mar 20, 2026):
Root cause: When your P2S shuts down, it sends a final MQTT message with tray_exist_bits=0 and power_on_flag=false. Bambuddy was treating this all-zero value as "every slot is empty" and clearing all AMS slot data. On reconnect, the auto-unlink check saw empty tray fingerprints and removed all spool assignments.
Fix: Bambuddy now skips the tray_exist_bits slot clearing when power_on_flag is false (shutdown message). Your AMS data is preserved in memory, and when the printer reconnects with fresh data, the spool assignments remain intact.
Available/Fixed in branch dev and available with the next release or daily build. Please let me know if it works for you now.
If you find Bambuddy useful, please consider giving it a ⭐ on GitHub — it helps others discover the project!