aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extruder.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-11-17 17:24:03 -0500
committerKevin O'Connor <kevin@koconnor.net>2016-11-18 14:04:09 -0500
commit9e1059afb46c9df439211d21590da987b32e2963 (patch)
treeefaede08f7dd8ade191cd7c4c4ddf0e7b5576086 /klippy/extruder.py
parent7ef8c0442a719ef80b9ef4109ab7e8fa57157854 (diff)
downloadkutter-9e1059afb46c9df439211d21590da987b32e2963.tar.gz
kutter-9e1059afb46c9df439211d21590da987b32e2963.tar.xz
kutter-9e1059afb46c9df439211d21590da987b32e2963.zip
homing: Create QueryEndstops class from gcode
Create the QueryEndstops in the gcode handler instead of in the kinematic classes. This simplifies the gcode handler as it can directly register its response callback. Also, store the stepper name in the stepper class. Also, propagate the print_time of the query request to the mcu_endstop class. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extruder.py')
-rw-r--r--klippy/extruder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extruder.py b/klippy/extruder.py
index 8b66dad6..451aebb0 100644
--- a/klippy/extruder.py
+++ b/klippy/extruder.py
@@ -9,7 +9,7 @@ import stepper, heater, homing
class PrinterExtruder:
def __init__(self, printer, config):
self.heater = heater.PrinterHeater(printer, config)
- self.stepper = stepper.PrinterStepper(printer, config)
+ self.stepper = stepper.PrinterStepper(printer, config, 'extruder')
self.pressure_advance = config.getfloat('pressure_advance', 0.)
self.need_motor_enable = True
self.stepper_pos = 0