Skip to content

Commit

Permalink
config: Don't use deprecated features in sample-pwm-tool.cfg
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
  • Loading branch information
KevinOConnor committed Oct 25, 2021
1 parent 7937678 commit a33d069
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/sample-pwm-tool.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a33d069

Please sign in to comment.