config: Don't use deprecated features in sample-pwm-tool.cfg

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2021-10-24 21:42:48 -04:00
parent 7937678cb3
commit a33d0697b6
1 changed files with 4 additions and 4 deletions

View File

@ -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: