KlipperScreen / KlipperScreen

GUI for Klipper
https://klipperscreen.github.io/KlipperScreen/
GNU Affero General Public License v3.0
1.06k stars 341 forks source link

[BUG] Unable to load panel zcalibrate on delta printer due to missing "mesh_min" #1310

Closed StarkRG closed 6 months ago

StarkRG commented 6 months ago

What happened?

When tapping on the zcalibrate button to load its panel the following error is displayed:

`'mesh_min'

Traceback (most recent call last): File "/home/starkrg/KlipperScreen/screen.py", line 321, in show_panel self.panels[panel_name] = self._load_panel(panel).Panel(self, title, **kwargs) File "/home/starkrg/KlipperScreen/panels/zcalibrate.py", line 60, in init self.set_functions() File "/home/starkrg/KlipperScreen/panels/zcalibrate.py", line 108, in set_functions self.mesh_min = self._csv_to_array(self._printer.get_config_section("bed_mesh")['mesh_min']) KeyError: 'mesh_min'`

What did you expect to happen instead?

According to the klipper documentation "mesh_min" is only required for rectangular beds so the panel shouldn't be looking for it. The "mesh_radius" parameter is probably what it should be looking for instead when the printer is a delta.

How to reproduce this bug?

On a delta printer which should not have a "mesh_min" parameter set, select the zcalibrate panel.

Additional information:

No response

Log output

Log will be in next comment since this form won't accept file attachments.
StarkRG commented 6 months ago

KlipperScreen.log