Closed dukeduck1984 closed 2 years ago
The same error occured even when I had set the value for probe_bed_x
& probe_bed_y
.
Both the Klipper & the Moonraker are the lastest version.
I had tried commenting out line 225 & 233 in method _log_config()
, and the same error occured again but the traceback pointed to probe_switch_site
- apparently the list probe_switch_site
contained None
as well. So I commented out line self._log_config()
from method cmd_CALIBRATE_Z()
and then it worked.
Any way to fix this?
I'm also struggling with this setup on a clean install. I think the error is the same.
I figured the problem is, that some variables get initialized on homing of Z. So they are None until Z is homed. https://github.com/protoloft/klipper_z_calibration/blob/cb68379941dfb6189cc9b2a4904cc3d6ce23024f/z_calibration.py#L116-L131
Best thing would be to query if Z is homed before continuing. It doesn't make sense to calibrate without Z being homed.
Oh no, there is no check for homed Z axis :see_no_evil: I will add it...
I've added a check for homed axes.
Hi,
When I executed
CALIBRATE_Z
, an error was raised as following:And also a pop warning message
float argument required, not NoneType
.This is what I found by looking at the traceback in the
klippy.log
:I commented out both
probe_bed_x
&probe_bed_y
inz_calibration.cfg
, but did haverelative_reference_index
configured inbed_mesh
section inprinter.cfg
.Is there anything else I might have missed?
Thanks for the help in advance.
Kaiyuan