aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--klippy/extras/delayed_gcode.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/extras/delayed_gcode.py b/klippy/extras/delayed_gcode.py
index b56c298c..ccf7e21b 100644
--- a/klippy/extras/delayed_gcode.py
+++ b/klippy/extras/delayed_gcode.py
@@ -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: