configfile: Add support for reporting deprecated options

Add a new printer.configfile.warnings with a list of config features
that are deprecated.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2021-09-04 14:20:24 -04:00
parent c89db2480d
commit 46167cae67
7 changed files with 40 additions and 2 deletions

View File

@@ -28,6 +28,12 @@ The following information is available in the `configfile` object
setting as read by Klipper during the last software start or
restart. (Any settings changed at run-time will not be reflected
here.) All values are returned as strings.
- `save_config_pending`: Returns true if there are updates that a
`SAVE_CONFIG` command may persist to disk.
- `warnings`: A list of warnings about config options. Each entry in
the list will be a dictionary containing a `type` and `message`
field (both strings). Additional fields may be available depending
on the type of warning.
## display_status