From 6172a65c58988c834440614835bfebe1e384a2b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=BE=D0=BA=D0=BE=D0=BB=D0=BE=D0=B2=20=D0=95=D0=B2?= =?UTF-8?q?=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9?= Date: Wed, 24 Jan 2024 15:49:36 +0300 Subject: [PATCH] STEAPP-885: fixed a bug in the TOGGLE_LIGHT macro that caused the Z_ENDSTOP_CALIBRATE macro to not work --- stereotech_config/630/chamber.cfg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stereotech_config/630/chamber.cfg b/stereotech_config/630/chamber.cfg index 810cfb358ee3..c37a8bfb5550 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]