aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-02-12 19:11:40 -0500
committerKevin O'Connor <kevin@koconnor.net>2020-02-12 19:32:48 -0500
commit512ad4b3a4e3893dea3efc02d7517a032fef4ac6 (patch)
tree56b18663ca0532f252f5b9018982e326d269e92b /docs
parent4d9a36b34f5c7d3245a35a74a95e3877984d1402 (diff)
downloadkutter-512ad4b3a4e3893dea3efc02d7517a032fef4ac6.tar.gz
kutter-512ad4b3a4e3893dea3efc02d7517a032fef4ac6.tar.xz
kutter-512ad4b3a4e3893dea3efc02d7517a032fef4ac6.zip
query_endstops: Add get_status() method that reports the last query state
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'docs')
-rw-r--r--docs/Command_Templates.md5
1 files changed, 5 insertions, 0 deletions
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["<endstop>"]`: 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