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