config: Remove deprecated features from printer-velleman-k8800-2017.cfg

Don't use deprecated default_parameter_x in
printer-velleman-k8800-2017.cfg .

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

View File

@ -120,11 +120,11 @@ pin: PH4
pwm: False
[gcode_macro M300]
default_parameter_S: 1000
# Use a default 1kHz tone if S is omitted.
default_parameter_P: 100
# # Use a 10ms duration is P is omitted.
gcode:
SET_PIN PIN=BEEPER VALUE=50 CYCLE_TIME={ 1/S|float }
G4 P{P}
SET_PIN PIN=BEEPER VALUE=0
# Use a default 1kHz tone if S is omitted.
{% set S = params.S|default(1000.0)|float %}
# Use a 10ms duration is P is omitted.
{% set P = params.P|default(100)|int %}
SET_PIN PIN=BEEPER VALUE=50 CYCLE_TIME={ 1.0 / S }
G4 P{P}
SET_PIN PIN=BEEPER VALUE=0