aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/pause_resume.py
Commit message (Collapse)AuthorAgeFilesLines
* pause_resume: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-10/+8
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Create new wrapper class for gcode command parametersKevin O'Connor2020-05-051-1/+1
| | | | | | | | Instead of passing a dictionary to the command handlers, create a wrapper class and pass that class to the command handlers. This can simplify the command handler code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pause_resume: add CLEAR_PAUSE gcodeArksine2019-06-281-0/+3
| | | | | | Allow the user to clear the pause state without restoring position. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* pause_resume: Use Octoprint's "paused" and "resumed" action commands.Arksine2019-06-021-2/+2
| | | | | | These action commands prevent Octoprint from sending extra gcodes that can interfere with Klipper's pause/resume control. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* pause_resume: use new save/restore gcodes to handle stateArksine2019-06-021-30/+15
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* pause_resume: Implement send_pause_command()Arksine2019-03-011-7/+14
| | | | | | This allows for pausing from inside a reactor callback. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* pause_resume: fixesArksine2019-02-081-12/+28
| | | | | | | | - When using absolute extrusion the gcode position e-axis position is now captured on PAUSE and restored in RESUME with a call to the G92 handler. - Add a get_status() function that returns a dictionary with an 'is_paused' key. - Do not allow consective calls to PAUSE or RESUME to exectue. Also do not allow a RESUME to executed without a previous PAUSE. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* pause_resume: initial implementation of pause/resume functionality for KlipperArksine2019-01-281-0/+56
This module adds PAUSE and RESUME gcodes that can programatically determine if the gcode is printing from virtual sd or over the serial connection. It also captures the current toolhead position and gcode feedrate on pause, and recovers that position and feedrate on resume. Signed-off-by: Eric Callahan <arksine.code@gmail.com>