mirror of https://github.com/Desuuuu/klipper.git
extruder: Remove unnecessary getsection('extruder') call
The passed in config object is already pointing to the 'extruder' section. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
b53da365a1
commit
3167e8ddbe
|
@ -8,9 +8,8 @@ import stepper, heater
|
|||
|
||||
class PrinterExtruder:
|
||||
def __init__(self, printer, config):
|
||||
cfg = config.getsection('extruder')
|
||||
self.heater = heater.PrinterHeater(printer, cfg)
|
||||
self.stepper = stepper.PrinterStepper(printer, cfg)
|
||||
self.heater = heater.PrinterHeater(printer, config)
|
||||
self.stepper = stepper.PrinterStepper(printer, config)
|
||||
self.pressure_advance = config.getfloat('pressure_advance', 0.)
|
||||
self.stepper_pos = 0
|
||||
self.extrude_pos = 0.
|
||||
|
|
Loading…
Reference in New Issue