diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-06-06 14:52:56 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-06-06 14:52:56 -0400 |
commit | 12e3b9fa7b4bb69db3af2508bdc291fb8a4890a8 (patch) | |
tree | 2ba4f5ffa9f8c4104030c1971a71bb22948cad73 /klippy/extras/hall_filament_width_sensor.py | |
parent | 739e6e73963effdd64677872af87a303cd68c3de (diff) | |
download | kutter-12e3b9fa7b4bb69db3af2508bdc291fb8a4890a8.tar.gz kutter-12e3b9fa7b4bb69db3af2508bdc291fb8a4890a8.tar.xz kutter-12e3b9fa7b4bb69db3af2508bdc291fb8a4890a8.zip |
hall_filament_width_sensor: Fix whitespace errors
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/hall_filament_width_sensor.py')
-rw-r--r-- | klippy/extras/hall_filament_width_sensor.py | 7 |
1 files 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 |