screws_tilt_adjust: Remove check for probe printer object
The probe object may not have be instantiated when the screws_tilt_adjust object is instantiated. Just remove the check. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
8e87ab0939
commit
a8ad1ae726
|
@ -19,12 +19,6 @@ class ScrewsTiltAdjust:
|
||||||
self.config = config
|
self.config = config
|
||||||
self.printer = config.get_printer()
|
self.printer = config.get_printer()
|
||||||
self.screws = []
|
self.screws = []
|
||||||
# Verify that a probe exists
|
|
||||||
try:
|
|
||||||
self.printer.lookup_object("probe")
|
|
||||||
except:
|
|
||||||
raise self.gcode.error("Error: you must have a probe on "
|
|
||||||
"your config file.")
|
|
||||||
# Read config
|
# Read config
|
||||||
for i in range(99):
|
for i in range(99):
|
||||||
prefix = "screw%d" % (i + 1,)
|
prefix = "screw%d" % (i + 1,)
|
||||||
|
|
Loading…
Reference in New Issue