diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2021-10-24 21:42:48 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-10-24 21:42:48 -0400 |
commit | a33d0697b6438e362f0cf9d25e1e8358d331bf53 (patch) | |
tree | 4267660f75076b464a0ad867acfc69d9c35e534f | |
parent | 7937678cb3514ac6d6a34f7a4bf46c73ca533eeb (diff) | |
download | kutter-a33d0697b6438e362f0cf9d25e1e8358d331bf53.tar.gz kutter-a33d0697b6438e362f0cf9d25e1e8358d331bf53.tar.xz kutter-a33d0697b6438e362f0cf9d25e1e8358d331bf53.zip |
config: Don't use deprecated features in sample-pwm-tool.cfg
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | config/sample-pwm-tool.cfg | 8 |
1 files 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: |