probe: Make sure there are at least 3 points even if using default_points
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
ce0f4fe038
commit
260d12af6d
|
@ -148,7 +148,7 @@ class ProbePointsHelper:
|
||||||
raise config.error("Unable to parse probe points in %s" % (
|
raise config.error("Unable to parse probe points in %s" % (
|
||||||
config.get_name()))
|
config.get_name()))
|
||||||
if len(self.probe_points) < 3:
|
if len(self.probe_points) < 3:
|
||||||
raise config.error("Need at least 3 points for %s" % (
|
raise config.error("Need at least 3 probe points for %s" % (
|
||||||
config.get_name()))
|
config.get_name()))
|
||||||
self.horizontal_move_z = config.getfloat('horizontal_move_z', 5.)
|
self.horizontal_move_z = config.getfloat('horizontal_move_z', 5.)
|
||||||
self.speed = self.lift_speed = config.getfloat('speed', 50., above=0.)
|
self.speed = self.lift_speed = config.getfloat('speed', 50., above=0.)
|
||||||
|
|
Loading…
Reference in New Issue