Skip to content

Commit

Permalink
start_end: Fix chamber handling (issue jschuh#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
jschuh committed May 13, 2023
1 parent b3d8d9b commit 8204294
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions start_end.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ gcode:
CLEAR_PAUSE
{% set BED = params.BED|default(params.BED_TEMP)|float %}
{% set EXTRUDER = params.EXTRUDER|default(params.EXTRUDER_TEMP)|float %}
{% set CHAMBER = params.CHAMBER|default(0)|float
if "chamber" in printer.heaters.available_heaters else 0.0 %}
{% set CHAMBER = params.CHAMBER|default(0)|float %}
{% set settings = printer["gcode_macro print_start_set"].settings %}
{% set MESH_MIN = params.MESH_MIN|default(settings.MESH_MIN)|default(None) %}
{% set MESH_MAX = params.MESH_MAX|default(settings.MESH_MAX)|default(None) %}
Expand Down Expand Up @@ -115,7 +114,9 @@ description: Parks the extruder if the current temperature of the supplied
Usage: _KM_PARK_IF_NEEDED HEATER=<heater> RANGE=[<percentage>|ABOVE|BELOW]
gcode:
# This needs to get called as its own macro to get the current temp evaluated.
{% set HEATER = params.HEATER %}
{% set HEATER = params.HEATER if params.HEATER in
printer.heaters.available_heaters else
("heater_generic " ~ params.HEATER) %}
{% set RANGE = (params.RANGE|default(1))|string|upper %}

{% if printer[HEATER].target %}
Expand Down

0 comments on commit 8204294

Please sign in to comment.