From 3167e8ddbe338a58311fd94f044e8499ca9c9787 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 30 Sep 2016 18:49:38 -0400 Subject: [PATCH] extruder: Remove unnecessary getsection('extruder') call The passed in config object is already pointing to the 'extruder' section. Signed-off-by: Kevin O'Connor --- klippy/extruder.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/klippy/extruder.py b/klippy/extruder.py index 6a7d6c99..9cc9376c 100644 --- a/klippy/extruder.py +++ b/klippy/extruder.py @@ -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.