diff options
author | Alec B. Plumb <alec@etherwalker.com> | 2019-01-02 14:45:35 -0800 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2019-01-02 17:45:35 -0500 |
commit | 59e9b6562fb39c1e4860971e818e94a455622547 (patch) | |
tree | c257eaab9c71f3c13b9d3e6590f3ae43e68d1ea7 /config | |
parent | f6c9150349d3ffb364a990132a16afa64c890b2e (diff) | |
download | kutter-59e9b6562fb39c1e4860971e818e94a455622547.tar.gz kutter-59e9b6562fb39c1e4860971e818e94a455622547.tar.xz kutter-59e9b6562fb39c1e4860971e818e94a455622547.zip |
respond: An extra for sending messages to the printer host. (#1053)
I have made one change to `gcode.py` to support quoted parameter
values.
I have added support for the basic `M118` command (see
https://reprap.org/wiki/G-code#M118:_Echo_message_on_host). I have
also added a `RESPOND` command that takes extended parameters.
`ECHO` might be a better name than `RESPOND` but is already defined
in `gcode.py`.
Signed-off-by: Alec B. Plumb <alec@etherwalker.com>
Diffstat (limited to 'config')
-rw-r--r-- | config/example-extras.cfg | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/config/example-extras.cfg b/config/example-extras.cfg index 57c9ddd1..0afc5ae3 100644 --- a/config/example-extras.cfg +++ b/config/example-extras.cfg @@ -1051,3 +1051,15 @@ # Replicape support - see the generic-replicape.cfg file for further # details. #[replicape] + +# Enable the "M118" and "RESPOND" extended commands. +# [respond] +# default_type: echo +# Sets the default prefix of the "M118" and "RESPOND" output to one of +# the following: +# echo: "echo: " (This is the default) +# command: "// " +# error: "!! " +# default_prefix: echo: +# Directly sets the default prefix. If present, this value will override +# the "default_type". |