Revert "bed_mesh: load default if no mesh have been loaded"

This reverts commit cb1793836c.
This commit is contained in:
alfrix committed 2023-08-26 13:05:44 -03:00
1 parent c10e414014
commit df6a4ea4da
1 file changed
+2 -2
+2 -2
View File
@@ -60,8 +60,8 @@ class Panel(ScreenPanel):
def activate(self):
self.load_meshes()
if not self._printer.get_stat('bed_mesh', 'profile_name') and 'default' in self.profiles:
self.send_load_mesh(None, 'default') # this is not the default behaviour of klipper anymore
with contextlib.suppress(KeyError):
self.activate_mesh(self._printer.get_stat("bed_mesh", "profile_name"))
def activate_mesh(self, profile):
if self.active_mesh is not None: