mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-02-11 19:39:25 -07:00
axis_twist_compensation: Fix AttributeError on klippy connect state (#6881)
Object 'configfile' has no attribute 'error' Signed-off-by: Maksim Bolgov <maksim8024@gmail.com>
This commit is contained in:
parent
3a9e9a4bef
commit
46ee920b93
1 changed files with 2 additions and 3 deletions
|
|
@ -125,9 +125,8 @@ class Calibrater:
|
|||
|
||||
def _handle_connect(self):
|
||||
self.probe = self.printer.lookup_object('probe', None)
|
||||
if (self.probe is None):
|
||||
config = self.printer.lookup_object('configfile')
|
||||
raise config.error(
|
||||
if self.probe is None:
|
||||
raise self.printer.config_error(
|
||||
"AXIS_TWIST_COMPENSATION requires [probe] to be defined")
|
||||
self.lift_speed = self.probe.get_probe_params()['lift_speed']
|
||||
self.probe_x_offset, self.probe_y_offset, _ = \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue