mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-08 23:46:25 -06:00
gcode: Remove support for "G4 S1" style commands
The S parameter is not a standard and was not commonly used. The P parameter (delay specified in milliseconds) is the commonly accepted g-code mechanism for dwelling. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
2d97e0e218
commit
8e87ab0939
2 changed files with 5 additions and 4 deletions
|
@ -515,10 +515,7 @@ class GCodeParser:
|
|||
self.move_with_transform(self.last_position, self.speed)
|
||||
def cmd_G4(self, params):
|
||||
# Dwell
|
||||
if 'S' in params:
|
||||
delay = self.get_float('S', params, minval=0.)
|
||||
else:
|
||||
delay = self.get_float('P', params, 0., minval=0.) / 1000.
|
||||
delay = self.get_float('P', params, 0., minval=0.) / 1000.
|
||||
self.toolhead.dwell(delay)
|
||||
def cmd_G28(self, params):
|
||||
# Move to origin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue