Fix: Remove Python format specifiers from RESPOND macros
Klipper's Jinja2 parser doesn't support {:.3f} style formatting.
Changed:
- PA_TEST_PATTERN: {current_pa:.3f} → {current_pa}
- FLOW_TEST_CUBE: {current_flow:.2f} → {current_flow}
- RETRACT_TEST_PATTERN: {current_retract:.1f} → {current_retract}
Fixes: Internal error during connect: Error loading template
This commit is contained in:
parent
5b8b5f4f58
commit
4d5b9d7243
1 changed files with 3 additions and 3 deletions
|
|
@ -41,7 +41,7 @@ gcode:
|
|||
{% set x_pos = 50 + (step % 5) * (square_size + spacing) %}
|
||||
{% set y_pos = 50 + (step // 5) * (square_size + spacing) %}
|
||||
|
||||
RESPOND MSG="Square {step + 1}/{STEPS}: PA={current_pa:.3f}"
|
||||
RESPOND MSG="Square {step + 1}/{STEPS}: PA={current_pa}"
|
||||
SET_PRESSURE_ADVANCE ADVANCE={current_pa}
|
||||
|
||||
# Move to position
|
||||
|
|
@ -98,7 +98,7 @@ gcode:
|
|||
{% set current_flow = START_FLOW + (step * step_size) %}
|
||||
{% set z_start = step * cube_height %}
|
||||
|
||||
RESPOND MSG="Section {step + 1}/{STEPS}: Flow={current_flow:.2f}"
|
||||
RESPOND MSG="Section {step + 1}/{STEPS}: Flow={current_flow}"
|
||||
|
||||
# Set flow rate (via extrusion multiplier simulation)
|
||||
{% set flow_multiplier = current_flow %}
|
||||
|
|
@ -167,7 +167,7 @@ gcode:
|
|||
{% set x_pos = 30 + (step % 4) * 25 %}
|
||||
{% set y_pos = 30 + (step // 4) * 25 %}
|
||||
|
||||
RESPOND MSG="Tower {step + 1}/{STEPS}: Retract={current_retract:.1f}mm"
|
||||
RESPOND MSG="Tower {step + 1}/{STEPS}: Retract={current_retract}mm"
|
||||
|
||||
# Print tower
|
||||
{% for layer in range(layers_per_tower) %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue