z-tilt: Unresolved symbol fixed

Signed-off-by: Petri Honkala <cruwaller@gmail.com>
This commit is contained in:
Petri Honkala 2019-09-24 18:42:37 +03:00 committed by KevinOConnor
parent a92bdf1d54
commit f8f0c3f142
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@ class ZAdjustHelper:
"%s z_positions needs exactly %d items" % (
self.name, len(z_steppers)))
if len(z_steppers) < 2:
raise config.error("%s requires multiple z steppers" % (self.name,))
raise self.printer.config_error(
"%s requires multiple z steppers" % (self.name,))
self.z_steppers = z_steppers
def adjust_steppers(self, adjustments, speed):
toolhead = self.printer.lookup_object('toolhead')