PRINT_END: run SpoolSense UPDATE_TAG when it is loaded

The SpoolSense middleware then deducts the print's filament and writes it
to the spool's NFC tag at the next scan. Skipped when spoolsense.cfg is
not included.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mangavalkandClaude Opus 5.5 committed 2026-11-11 23:03:49 +01:00
1 parent 5785df99b3
commit d51d791a10
1 file changed
+6
+6
View File
@@ -348,6 +348,12 @@ gcode:
RESTORE_GCODE_STATE NAME=STATE_PRINT_END
# After the restore: RESTORE_GCODE_STATE also restores the flow (M221)
_PRINT_CLEANUP
# SpoolSense (spoolsense.cfg in the config folder, not in this repo): the
# middleware deducts this print's filament and writes it to the spool's
# NFC tag at its next scan
{% if 'gcode_macro UPDATE_TAG' in printer %}
UPDATE_TAG
{% endif %}
# End-of-print cleanup shared by PRINT_END and CANCEL_PRINT
[gcode_macro _PRINT_CLEANUP]