From 7a615b4f69a2e9df7889b4801354ff04abff10c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janar=20S=C3=B6=C3=B6t?= Date: Thu, 13 Aug 2020 19:41:56 +0300 Subject: [PATCH] hall_filament_width_sensor: fix error Fix no attribute error in in get_status MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Janar Sööt --- klippy/extras/hall_filament_width_sensor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/klippy/extras/hall_filament_width_sensor.py b/klippy/extras/hall_filament_width_sensor.py index d84cfd70..b01b69ac 100644 --- a/klippy/extras/hall_filament_width_sensor.py +++ b/klippy/extras/hall_filament_width_sensor.py @@ -39,6 +39,7 @@ class HallFilamentWidthSensor: # filament array [position, filamentWidth] self.filament_array = [] self.lastFilamentWidthReading = 0 + self.lastFilamentWidthReading2 = 0 # printer objects self.toolhead = self.ppins = self.mcu_adc = None self.printer.register_event_handler("klippy:ready", self.handle_ready)