From 12e3b9fa7b4bb69db3af2508bdc291fb8a4890a8 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 6 Jun 2020 14:52:56 -0400 Subject: [PATCH] hall_filament_width_sensor: Fix whitespace errors Signed-off-by: Kevin O'Connor --- klippy/extras/hall_filament_width_sensor.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/klippy/extras/hall_filament_width_sensor.py b/klippy/extras/hall_filament_width_sensor.py index 50669482..ee3a6632 100644 --- a/klippy/extras/hall_filament_width_sensor.py +++ b/klippy/extras/hall_filament_width_sensor.py @@ -31,8 +31,10 @@ class HallFilamentWidthSensor: self.diameter =self.nominal_filament_dia self.is_active =config.getboolean('enable', False) self.runout_dia=config.getfloat('min_diameter', 1.0) - # Use the current diameter instead of nominal while the first measurement isn't in place - self.use_current_dia_while_delay = config.getboolean('use_current_dia_while_delay', False) + # Use the current diameter instead of nominal while the first + # measurement isn't in place + self.use_current_dia_while_delay = config.getboolean( + 'use_current_dia_while_delay', False) # filament array [position, filamentWidth] self.filament_array = [] self.lastFilamentWidthReading = 0 @@ -122,7 +124,6 @@ class HallFilamentWidthSensor: filament_width = self.diameter else: filament_width = self.nominal_filament_dia - if ((filament_width <= self.max_diameter) and (filament_width >= self.min_diameter)): percentage = round(self.nominal_filament_dia**2