mirror of https://github.com/Desuuuu/klipper.git
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:
parent
cc9541092a
commit
7937678cb3
|
@ -120,11 +120,11 @@ pin: PH4
|
||||||
pwm: False
|
pwm: False
|
||||||
|
|
||||||
[gcode_macro M300]
|
[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:
|
gcode:
|
||||||
SET_PIN PIN=BEEPER VALUE=50 CYCLE_TIME={ 1/S|float }
|
# 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}
|
G4 P{P}
|
||||||
SET_PIN PIN=BEEPER VALUE=0
|
SET_PIN PIN=BEEPER VALUE=0
|
||||||
|
|
Loading…
Reference in New Issue