From 512ad4b3a4e3893dea3efc02d7517a032fef4ac6 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 12 Feb 2020 19:11:40 -0500 Subject: query_endstops: Add get_status() method that reports the last query state Signed-off-by: Kevin O'Connor --- docs/Command_Templates.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs') diff --git a/docs/Command_Templates.md b/docs/Command_Templates.md index 7a0bc34d..9727bb2b 100644 --- a/docs/Command_Templates.md +++ b/docs/Command_Templates.md @@ -175,6 +175,11 @@ The following are common printer attributes: available temperature sensors by their full config section names, e.g. `["extruder", "heater_bed", "heater_generic my_custom_heater", "temperature_sensor electronics_temp"]`. +- `printer.query_endstops.last_query[""]`: Returns True if + the given endstop was reported as "triggered" during the last + QUERY_ENDSTOP command. Note, due to the order of template expansion + (see above), the QUERY_STATUS command must be run prior to the macro + containing this reference. The above list is subject to change - if using an attribute be sure to review the [Config Changes document](Config_Changes.md) when upgrading -- cgit v1.2.3-70-g09d2