Skip to content

Commit

Permalink
Changed logic
Browse files Browse the repository at this point in the history
  • Loading branch information
tehniemer committed Feb 6, 2025
1 parent d44e300 commit edab14a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion macros/miscs/startup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ gcode:
[gcode_macro _INIT_LEDS]
gcode:
{% if printer["gcode_macro _USER_VARIABLES"].status_leds_enabled or printer["gcode_macro _USER_VARIABLES"].status_leds_caselight_enabled %}
{% set light_intensity_startup = printer["gcode_macro _USER_VARIABLES"].light_intensity_startup|default(0) %}
{% if printer["gcode_macro _USER_VARIABLES"].caselight_on_at_startup|default(False) %}
{% set printer["gcode_macro _USER_VARIABLES"].light_intensity_startup|default(100) %}
{% if printer["gcode_macro _USER_VARIABLES"].light_enabled %}
LIGHT_ON S={light_intensity_startup}
{% endif %}
Expand Down
3 changes: 2 additions & 1 deletion user_templates/variables.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,10 @@ variable_purgeclean_servo_angle_retracted: 0
variable_purgeclean_servo_angle_deployed: 90

## Caselight LEDs ON at startup (caselight need to be installed in the machine)
variable_light_intensity_startup: 0
variable_caselight_on_at_startup: False

## Caselight parameters (if installed in the machine)
variable_light_intensity_startup: 100
variable_light_intensity_start_print: 100
variable_light_intensity_printing: 30
variable_light_intensity_end_print: 0
Expand Down

0 comments on commit edab14a

Please sign in to comment.