hall_filament_width_sensor: fix error
Fix no attribute error in in get_status Signed-off-by: Janar Sööt <janar.soot@gmail.com>
This commit is contained in:
parent
e4f3f60ea6
commit
7a615b4f69
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue