From 4d5b9d7243f5c823308876852269e2d22125e1c2 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 13 Mar 2026 10:26:51 +0000 Subject: [PATCH] Fix: Remove Python format specifiers from RESPOND macros MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- calibration/test_patterns.cfg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/calibration/test_patterns.cfg b/calibration/test_patterns.cfg index 7b6b763..0869253 100644 --- a/calibration/test_patterns.cfg +++ b/calibration/test_patterns.cfg @@ -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) %}