mirror of
https://github.com/andreili/klipper.git
synced 2025-08-23 19:34:06 +02:00
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>
This commit is contained in:
parent
69507a0354
commit
3dbac01e1d
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user