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:
Kevin O'Connor 2016-09-30 18:49:38 -04:00
parent b53da365a1
commit 3167e8ddbe
1 changed files with 2 additions and 3 deletions

View File

@ -8,9 +8,8 @@ import stepper, heater
class PrinterExtruder: class PrinterExtruder:
def __init__(self, printer, config): def __init__(self, printer, config):
cfg = config.getsection('extruder') self.heater = heater.PrinterHeater(printer, config)
self.heater = heater.PrinterHeater(printer, cfg) self.stepper = stepper.PrinterStepper(printer, config)
self.stepper = stepper.PrinterStepper(printer, cfg)
self.pressure_advance = config.getfloat('pressure_advance', 0.) self.pressure_advance = config.getfloat('pressure_advance', 0.)
self.stepper_pos = 0 self.stepper_pos = 0
self.extrude_pos = 0. self.extrude_pos = 0.