aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/hall_filament_width_sensor.py
diff options
context:
space:
mode:
authorDenis Ignatenko <60291791+test3210-d@users.noreply.github.com>2021-03-27 18:53:40 +0200
committerGitHub <noreply@github.com>2021-03-27 12:53:40 -0400
commitcc31810fa8be6d58b1b9d71f9847cfe9842a7c6a (patch)
tree90074324a77c75cee1b36667cc206179ae910662 /klippy/extras/hall_filament_width_sensor.py
parent00f8262e57208f4faf4b8477df66411eb1886b51 (diff)
downloadkutter-cc31810fa8be6d58b1b9d71f9847cfe9842a7c6a.tar.gz
kutter-cc31810fa8be6d58b1b9d71f9847cfe9842a7c6a.tar.xz
kutter-cc31810fa8be6d58b1b9d71f9847cfe9842a7c6a.zip
hall_filament_width_sensor: fix range check error (#4113)
Signed-off-by: Denis Ignatenko <deniss979@gmail.com>
Diffstat (limited to 'klippy/extras/hall_filament_width_sensor.py')
-rw-r--r--klippy/extras/hall_filament_width_sensor.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/extras/hall_filament_width_sensor.py b/klippy/extras/hall_filament_width_sensor.py
index 9b244e13..276dd144 100644
--- a/klippy/extras/hall_filament_width_sensor.py
+++ b/klippy/extras/hall_filament_width_sensor.py
@@ -127,7 +127,7 @@ class HallFilamentWidthSensor:
self.runout_helper.note_filament_present(
self.diameter > self.runout_dia)
# Does filament exists
- if self.lastFilamentWidthReading > 0.5:
+ if self.diameter > 0.5:
if len(self.filament_array) > 0:
# Get first position in filament array
pending_position = self.filament_array[0][0]
@@ -160,7 +160,7 @@ class HallFilamentWidthSensor:
def cmd_M407(self, gcmd):
response = ""
- if self.lastFilamentWidthReading > 0:
+ if self.diameter > 0:
response += ("Filament dia (measured mm): "
+ str(self.diameter))
else: