delayed_gcode: Use new GCodeCommand wrappers
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
e9e0c374d6
commit
a7ca0e1670
|
@ -40,8 +40,8 @@ class DelayedGcode:
|
|||
self.inside_timer = self.repeat = False
|
||||
return nextwake
|
||||
cmd_UPDATE_DELAYED_GCODE_help = "Update the duration of a delayed_gcode"
|
||||
def cmd_UPDATE_DELAYED_GCODE(self, params):
|
||||
self.duration = self.gcode.get_float('DURATION', params, minval=0.)
|
||||
def cmd_UPDATE_DELAYED_GCODE(self, gcmd):
|
||||
self.duration = gcmd.get_float('DURATION', minval=0.)
|
||||
if self.inside_timer:
|
||||
self.repeat = (self.duration != 0.)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue