92jackson/mainsail-advanced-filament-swap

G4 S

Opened this issue · 0 comments

Klipper does not support S for G4
I have created a macro to add seconds already, here it is!

[gcode_macro G4]
rename_existing: G4.1
gcode:
{% set SEC = params.S|default(0)|int %}
{% set MILI = params.P|default(0)|int %}
{% if 'P' in params %}
G4.1 P{MILI}
{% elif 'S' in params %}
{% set F = 1000*SEC %}
G4.1 P{F}
{% endif %}