aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/delayed_gcode.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-04-25 00:18:41 -0400
committerKevin O'Connor <kevin@koconnor.net>2020-05-05 11:08:12 -0400
commita7ca0e1670e0a058a6facdbd2da410c02e0b1abd (patch)
treeb13d1a3f93d81f19da40147aab81b6a7cf33edd9 /klippy/extras/delayed_gcode.py
parente9e0c374d63cbd873557ba5e3bb22d4e6d6afdd1 (diff)
downloadkutter-a7ca0e1670e0a058a6facdbd2da410c02e0b1abd.tar.gz
kutter-a7ca0e1670e0a058a6facdbd2da410c02e0b1abd.tar.xz
kutter-a7ca0e1670e0a058a6facdbd2da410c02e0b1abd.zip
delayed_gcode: Use new GCodeCommand wrappers
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/delayed_gcode.py')
-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: