Files
klipper-macros/macros/spoolman/active_spool.cfg
T

20 lines
446 B
INI
Raw Normal View History

# Spoolman: SET_ACTIVE_SPOOL, CLEAR_ACTIVE_SPOOL
[gcode_macro SET_ACTIVE_SPOOL]
gcode:
{% if params.ID %}
{% set id = params.ID|int %}
{action_call_remote_method(
"spoolman_set_active_spool",
spool_id=id
)}
{% else %}
{action_respond_info("Parameter 'ID' is required")}
{% endif %}
[gcode_macro CLEAR_ACTIVE_SPOOL]
gcode:
{action_call_remote_method(
"spoolman_set_active_spool",
spool_id=None
)}