klippain icon indicating copy to clipboard operation
klippain copied to clipboard

END_PRINT macro static filter fan

Open bananensoftware opened this issue 1 year ago • 3 comments

Klippain branch

  • [X] I confirm using the main branch

Version

v4.3.1-11-g4ff6f5b4

Describe the bug and expected behavior

The filter macro sets the filter_name for using the correct fan dynamically:

[gcode_macro START_FILTER]
gcode:
    {% set SPEED = params.SPEED|default(1)|float %}

    {% set filter_name = printer["gcode_macro _USER_VARIABLES"].filter_name %}
    SET_FAN_SPEED FAN={filter_name} SPEED={SPEED}

But not in the END_PRINT macro, which breaks if a diffrent name then filter is used:

    {% if filter_enabled %}
        {% if printer['fan_generic filter'].speed > 0 %}
            {% set FILTER_TIME = params.FILTER_TIME|default(filter_default_time)|int %}
            START_FILTER SPEED=1
            UPDATE_DELAYED_GCODE ID=_STOP_FILTER_DELAYED DURATION={FILTER_TIME}
        {% endif %}
    {% endif %}

Additional information and klippy.log

No response

bananensoftware avatar May 23 '24 08:05 bananensoftware

you mean the if-line?

Surion79 avatar May 31 '24 06:05 Surion79

yes, the current implementation makes it pointless to have configurable filter name.

bananensoftware avatar Jun 09 '24 07:06 bananensoftware

📌 This issue has been marked as stale because it has not had activity in the past 30 days. To keep it open, please respond to this message or add new information. Otherwise, this will be closed in 14 days. Thank you for your contributions!

github-actions[bot] avatar Jul 10 '24 07:07 github-actions[bot]

Same issue as mentioned in #610

rajenki avatar Jul 16 '24 03:07 rajenki

📌 This issue has been marked as stale because it has not had activity in the past 30 days. To keep it open, please respond to this message or add new information. Otherwise, this will be closed in 14 days. Thank you for your contributions!

github-actions[bot] avatar Aug 15 '24 07:08 github-actions[bot]

This issue was closed due to inactivity for 14 days. Feel free to reopen it if you think it was an error or if you have new information or progress to share

github-actions[bot] avatar Aug 30 '24 07:08 github-actions[bot]