mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-30 11:12:35 +02:00
Skip AMS remain% weight sync in on_ams_change while a print session is active. The MQTT FINISH message triggers both the AMS weight sync (SET from remain%) and the usage tracker (ADD from 3MF data) in the same event loop cycle, causing double deduction. The active-session check is snapshotted before any await to prevent a race with on_print_complete popping the session during interleaved execution.