zcalibrate: always init mesh vars

This commit is contained in:
Alfredo Monclus committed 2024-06-21 15:35:58 -03:00
1 parent c41b95d610
commit f8b31ece5a
1 file changed
+5
+5
View File
@@ -20,6 +20,11 @@ class Panel(ScreenPanel):
self.setup_ui()
def initialize_mesh_params(self):
self.mesh_min = []
self.mesh_max = []
self.mesh_radius = None
self.mesh_origin = [0, 0]
self.zero_ref = []
if "BED_MESH_CALIBRATE" not in self._printer.available_commands:
return
mesh = self._printer.get_config_section("bed_mesh")