aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/respond.py
Commit message (Collapse)AuthorAgeFilesLines
* gcode: Rename respond() to respond_raw()Kevin O'Connor2020-04-241-2/+2
| | | | | | | | | | | Rename the method to make it more clear that it is a low-level call that should be rarely used. Also, change gcode_button.py, hall_filament_width_sensor.py, and tsl1401cl_filament_width_sensor.py to use respond_info() instead of respond_raw(). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* respond: Simplify M118 handlingKevin O'Connor2020-04-241-16/+13
| | | | | | | | No need to check for '#original' in params - it's always there. Properly handle a lower case m118 command. Don't register a help text for the legacy M118 g-code command. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* respond: Wrap code to 80 columnsKevin O'Connor2019-02-271-3/+7
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* respond: An extra for sending messages to the printer host. (#1053)Alec B. Plumb2019-01-021-0/+51
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>