diff options
author | Gareth Farrington <gareth@waves.ky> | 2025-05-09 13:52:08 -0700 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2025-05-29 19:08:32 -0400 |
commit | 3dbac01e1dd5057275d6a29d0248081397bbe0d4 (patch) | |
tree | 2270fd621dbd792d677c24dbf65f14702605700e /klippy/extras | |
parent | 69507a0354e88d68d57671b3bab8aca278f2cefb (diff) | |
download | kutter-3dbac01e1dd5057275d6a29d0248081397bbe0d4.tar.gz kutter-3dbac01e1dd5057275d6a29d0248081397bbe0d4.tar.xz kutter-3dbac01e1dd5057275d6a29d0248081397bbe0d4.zip |
probe: Create ProbeVirtualEndstopDeprecation
As probes stop supporting `probe:z_virtual_endstop` this class will give users a polite and specific configuration error.
Signed-off-by: Gareth Farrington <gareth@waves.ky>
Diffstat (limited to 'klippy/extras')
-rw-r--r-- | klippy/extras/probe.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/klippy/extras/probe.py b/klippy/extras/probe.py index 3de192c0..bfeb33ce 100644 --- a/klippy/extras/probe.py +++ b/klippy/extras/probe.py @@ -265,6 +265,17 @@ class HomingViaProbeHelper: self.results = [] self.mcu_probe.multi_probe_end() +class ProbeVirtualEndstopDeprecation: + def __init__(self, config): + self._name = config.get_name() + self._printer = config.get_printer() + # Register z_virtual_endstop pin + self._printer.lookup_object('pins').register_chip('probe', self) + def setup_pin(self, pin_type, pin_params): + raise self._printer.config_error( + "Module [%s] does not support `probe:z_virtual_endstop`" + ", use a pin instead." % (self._name,)) + # Helper to read multi-sample parameters from config class ProbeParameterHelper: def __init__(self, config): |