From 8a2de5f23e0ffdd2ca88b78d1a99217e5132256a Mon Sep 17 00:00:00 2001 From: Pedro Lamas Date: Fri, 31 Jan 2025 11:00:16 +0000 Subject: save_variables: Check lowercase variable names Signed-off-by: Pedro Lamas --- docs/Config_Changes.md | 4 ++++ docs/G-Codes.md | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/Config_Changes.md b/docs/Config_Changes.md index a73a0c37..adc03a08 100644 --- a/docs/Config_Changes.md +++ b/docs/Config_Changes.md @@ -8,6 +8,10 @@ All dates in this document are approximate. ## Changes +20250131: Option `VARIABLE=` in `SAVE_VARIABLE` requires lowercase +value. For example, `extruder` instead of mixedcase `Extruder` or +uppercase `EXTRUDER`. Using any uppercase letter will raise an error. + 20241203: The resonance test has been changed to include slow sweeping moves. This change requires that testing point(s) have some clearance in X/Y plane (+/- 30 mm from the test point should suffice when using diff --git a/docs/G-Codes.md b/docs/G-Codes.md index ff6182fa..78c1c74b 100644 --- a/docs/G-Codes.md +++ b/docs/G-Codes.md @@ -1201,8 +1201,9 @@ has been enabled. #### SAVE_VARIABLE `SAVE_VARIABLE VARIABLE= VALUE=`: Saves the variable to -disk so that it can be used across restarts. All stored variables are -loaded into the `printer.save_variables.variables` dict at startup and +disk so that it can be used across restarts. The VARIABLE must be lowercase. +All stored variables are loaded into the +`printer.save_variables.variables` dict at startup and can be used in gcode macros. The provided VALUE is parsed as a Python literal. -- cgit v1.2.3-70-g09d2