probe: expose name on status report
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
This commit is contained in:
parent
2337d05f48
commit
87f109984a
|
@ -346,6 +346,7 @@ The following information is available in the
|
||||||
[probe](Config_Reference.md#probe) object (this object is also
|
[probe](Config_Reference.md#probe) object (this object is also
|
||||||
available if a [bltouch](Config_Reference.md#bltouch) config section
|
available if a [bltouch](Config_Reference.md#bltouch) config section
|
||||||
is defined):
|
is defined):
|
||||||
|
- `name`: Returns the name of the probe in use.
|
||||||
- `last_query`: Returns True if the probe was reported as "triggered"
|
- `last_query`: Returns True if the probe was reported as "triggered"
|
||||||
during the last QUERY_PROBE command. Note, if this is used in a
|
during the last QUERY_PROBE command. Note, if this is used in a
|
||||||
macro, due to the order of template expansion, the QUERY_PROBE
|
macro, due to the order of template expansion, the QUERY_PROBE
|
||||||
|
|
|
@ -195,7 +195,8 @@ class PrinterProbe:
|
||||||
self.last_state = res
|
self.last_state = res
|
||||||
gcmd.respond_info("probe: %s" % (["open", "TRIGGERED"][not not res],))
|
gcmd.respond_info("probe: %s" % (["open", "TRIGGERED"][not not res],))
|
||||||
def get_status(self, eventtime):
|
def get_status(self, eventtime):
|
||||||
return {'last_query': self.last_state,
|
return {'name': self.name,
|
||||||
|
'last_query': self.last_state,
|
||||||
'last_z_result': self.last_z_result}
|
'last_z_result': self.last_z_result}
|
||||||
cmd_PROBE_ACCURACY_help = "Probe Z-height accuracy at current XY position"
|
cmd_PROBE_ACCURACY_help = "Probe Z-height accuracy at current XY position"
|
||||||
def cmd_PROBE_ACCURACY(self, gcmd):
|
def cmd_PROBE_ACCURACY(self, gcmd):
|
||||||
|
|
Loading…
Reference in New Issue