Skip to content

Commit

Permalink
Enable case lighting with caselight_on_at_startup
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpolito committed Mar 27, 2024
1 parent 1d9a2b5 commit 28b2754
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions macros/miscs/startup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,14 @@ gcode:
gcode:
{% if printer["gcode_macro _USER_VARIABLES"].status_leds_enabled or printer["gcode_macro _USER_VARIABLES"].status_leds_caselight_enabled %}
{% if printer["gcode_macro _USER_VARIABLES"].caselight_on_at_startup|default(False) %}
{% if printer["gcode_macro _USER_VARIABLES"].light_enabled %}
LIGHT_ON
{% endif %}
STATUS_LEDS COLOR="READY"
{% else %}
{% if printer["gcode_macro _USER_VARIABLES"].light_enabled %}
LIGHT_OFF
{% endif %}
STATUS_LEDS COLOR="OFF"
{% endif %}
{% endif %}
Expand Down

0 comments on commit 28b2754

Please sign in to comment.