From d51d791a10824f9eb6cbf474c4614c73cf121d9c Mon Sep 17 00:00:00 2001 From: MangaValk Date: Wed, 11 Nov 2026 23:03:49 +0100 Subject: [PATCH] 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 --- macros/print/print_start_end.cfg | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/macros/print/print_start_end.cfg b/macros/print/print_start_end.cfg index efa9337..d058e3b 100644 --- a/macros/print/print_start_end.cfg +++ b/macros/print/print_start_end.cfg @@ -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]