diff --git a/stereotech_config/630/chamber.cfg b/stereotech_config/630/chamber.cfg index 8066f22efb6a..bedbd36c44b5 100644 --- a/stereotech_config/630/chamber.cfg +++ b/stereotech_config/630/chamber.cfg @@ -61,11 +61,14 @@ gcode: SET_LED_EFFECT EFFECT=maintenance REPLACE=1 FADETIME=6.0 [gcode_macro TOGGLE_LIGHT] +variable_light: 1 gcode: {% if printer['led case_led'].color_data[0][3] > 0.0 %} SET_LED LED=case_led WHITE=0 + SET_GCODE_VARIABLE MACRO=TOGGLE_LIGHT VARIABLE=light VALUE=0 {% else %} SET_LED LED=case_led WHITE=1 + SET_GCODE_VARIABLE MACRO=TOGGLE_LIGHT VARIABLE=light VALUE=1 {% endif %} [gcode_macro STATUS_LED]