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:
Gareth Farrington authored and Kevin O'Connor committed 2025-05-29 19:08:32 -04:00
1 parent 69507a0354
commit 3dbac01e1d
1 file changed
+11
+11
View File
@@ -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):