From b5b2fe2d2b6abdb0e09db5979f6c2b1b769d6fa1 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 2 Apr 2021 13:50:38 -0400 Subject: [PATCH] bed_mesh: Perform initialization from klippy:connect instead of klippy:ready Signed-off-by: Kevin O'Connor --- klippy/extras/bed_mesh.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/klippy/extras/bed_mesh.py b/klippy/extras/bed_mesh.py index 8151fe97..cb9e719c 100644 --- a/klippy/extras/bed_mesh.py +++ b/klippy/extras/bed_mesh.py @@ -57,8 +57,6 @@ class BedMesh: FADE_DISABLE = 0x7FFFFFFF def __init__(self, config): self.printer = config.get_printer() - self.printer.register_event_handler("klippy:ready", - self.handle_ready) self.printer.register_event_handler("klippy:connect", self.handle_connect) self.last_position = [0., 0., 0., 0.] @@ -94,7 +92,6 @@ class BedMesh: gcode_move.set_move_transform(self) def handle_connect(self): self.toolhead = self.printer.lookup_object('toolhead') - def handle_ready(self): self.bmc.print_generated_points(logging.info) self.pmgr.initialize() def set_mesh(self, mesh):