bed_tilt: Require at least 3 probing points for bed_tilt_calibrate

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2018-03-12 18:48:44 -04:00
parent 36612fd544
commit 1dda4628a0
1 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,8 @@ class BedTiltCalibrate:
for p in points]
except:
raise config.error("Unable to parse bed tilt points")
if len(self.points) < 3:
raise config.error("Need at least 3 points for bed_tilt_calibrate")
self.speed = config.getfloat('speed', 50., above=0.)
self.horizontal_move_z = config.getfloat('horizontal_move_z', 5.)
self.probe_z_offset = config.getfloat('probe_z_offset', 0.)