update idm.py.

Signed-off-by: Sgr A* VMT <1611902585@qq.com>
This commit is contained in:
Sgr A* VMT
2023-11-29 08:04:08 +00:00
committed by Gitee
parent bbc3051c2b
commit e82ff89fe4

2
idm.py
View File

@@ -261,7 +261,7 @@ class IDMProbe:
(dist, samples) = self._sample(self.z_settling_time, num_samples) (dist, samples) = self._sample(self.z_settling_time, num_samples)
elif math.isinf(dist) and dist < 0: elif math.isinf(dist) and dist < 0:
# We were below the valid range of the model # We were below the valid range of the model
msg = "Attempted to probe with Beacon below calibrated model range" msg = "Attempted to probe with IDM below calibrated model range"
raise self.printer.command_error(msg) raise self.printer.command_error(msg)
elif self.toolhead.get_position()[2] < target - tdt: elif self.toolhead.get_position()[2] < target - tdt:
# We are below the probing target height, we'll move to the # We are below the probing target height, we'll move to the