From 00fd04d46aa488532ecb699b2527a3b7fe495838 Mon Sep 17 00:00:00 2001 From: HelgeKeck Date: Fri, 20 Dec 2024 18:23:58 +0100 Subject: [PATCH] DOC: add new chamber filter macro hook (#171) --- site/docs/configuration/chamber_filter.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/site/docs/configuration/chamber_filter.md b/site/docs/configuration/chamber_filter.md index 34fe48cf5..f205d5538 100644 --- a/site/docs/configuration/chamber_filter.md +++ b/site/docs/configuration/chamber_filter.md @@ -31,11 +31,20 @@ The chamber filter control includes two customizable macro hooks: ``` [gcode_macro _CHAMBER_FILTER_TURN_ON] gcode: - # Configuration - {% set chamber_filter_speed = printer["gcode_macro RatOS"].chamber_filter_speed|default(0)|float %} + # parameters + {% set at = params.AT|default('')|lower %} - # Turn filter fan on - SET_FAN_SPEED FAN=filter SPEED={chamber_filter_speed} + # config + {% set chamber_filter_speed = printer["gcode_macro RatOS"].chamber_filter_speed|default(0)|float %} + {% if at == "print_end" %} + {% set chamber_filter_speed = printer["gcode_macro RatOS"].chamber_filter_disable_speed|default(0)|float %} + {% endif %} + + # reset timer + UPDATE_DELAYED_GCODE ID=_CHAMBER_FILTER_OFF_TIMER DURATION=0 + + # turn filter fan on + SET_FAN_SPEED FAN=filter SPEED={chamber_filter_speed} ``` ```