From a33d0697b6438e362f0cf9d25e1e8358d331bf53 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 24 Oct 2021 21:42:48 -0400 Subject: [PATCH] config: Don't use deprecated features in sample-pwm-tool.cfg Signed-off-by: Kevin O'Connor --- config/sample-pwm-tool.cfg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/sample-pwm-tool.cfg b/config/sample-pwm-tool.cfg index 976f470b..4adcea6f 100644 --- a/config/sample-pwm-tool.cfg +++ b/config/sample-pwm-tool.cfg @@ -18,14 +18,14 @@ maximum_mcu_duration: 5 # needs to be in default speed. [gcode_macro M3] -default_parameter_S: 0 gcode: - SET_PIN PIN=TOOL VALUE={S|float / 255} + {% set S = params.S|default(0.0)|float %} + SET_PIN PIN=TOOL VALUE={S / 255.0} [gcode_macro M4] -default_parameter_S: 0 gcode: - SET_PIN PIN=TOOL VALUE={S|float / 255} + {% set S = params.S|default(0.0)|float %} + SET_PIN PIN=TOOL VALUE={S / 255.0} [gcode_macro M5] gcode: