aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-06-07 19:30:17 -0400
committerKevin O'Connor <kevin@koconnor.net>2019-06-07 19:33:31 -0400
commit8b005808848dd5395792dba8b9f470ac441c5e72 (patch)
treed14322e6056d6652d3e15e77fb06698cdf588978 /docs
parent01f3b50e7399f3ea327c6de2130dc16b6f8a27f5 (diff)
downloadkutter-8b005808848dd5395792dba8b9f470ac441c5e72.tar.gz
kutter-8b005808848dd5395792dba8b9f470ac441c5e72.tar.xz
kutter-8b005808848dd5395792dba8b9f470ac441c5e72.zip
gcode_macro: Parse variable_X parameters using ast.literal_eval()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'docs')
-rw-r--r--docs/Config_Changes.md5
-rw-r--r--docs/G-Codes.md3
2 files changed, 7 insertions, 1 deletions
diff --git a/docs/Config_Changes.md b/docs/Config_Changes.md
index dc6935fd..abce75be 100644
--- a/docs/Config_Changes.md
+++ b/docs/Config_Changes.md
@@ -6,6 +6,11 @@ All dates in this document are approximate.
# Changes
+20190607: The "variable_X" parameters of gcode_macro (along with the
+VALUE parameter of SET_GCODE_VARIABLE) are now parsed as Python
+literals. If a value needs to be assigned a string then wrap the value
+in quotes so that it is evaluated as a string.
+
20190606: The "samples", "samples_result", and "sample_retract_dist"
config options have been moved to the "probe" config section. These
options are no longer supported in the "delta_calibrate", "bed_tilt",
diff --git a/docs/G-Codes.md b/docs/G-Codes.md
index 03d35460..5d06a4a1 100644
--- a/docs/G-Codes.md
+++ b/docs/G-Codes.md
@@ -182,7 +182,8 @@ The following command is available when a "gcode_macro" config section
is enabled:
- `SET_GCODE_VARIABLE MACRO=<macro_name> VARIABLE=<name>
VALUE=<value>`: This command allows one to change the value of a
- gcode_macro variable at run-time.
+ gcode_macro variable at run-time. The provided VALUE is parsed as a
+ Python literal.
## Custom Pin Commands