bed_mesh: Perform initialization from klippy:connect instead of klippy:ready

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2021-04-02 13:50:38 -04:00
parent 3cfc42e54a
commit b5b2fe2d2b
1 changed files with 0 additions and 3 deletions

View File

@ -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):