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 committed 2016-09-30 21:36:51 -04:00
1 parent b53da365a1
commit 3167e8ddbe
1 file changed
+2 -3
+2 -3
View File
@@ -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.