aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/print_stats.py
Commit message (Collapse)AuthorAgeFilesLines
* print_stats: add `cancelled` when `CANCEL_PRINT` used (#4366)Kamil TrzciƄski2021-06-141-4/+8
| | | | | | | | | | | Before this change, a `CANCEL_PRINT` set a `print_stats` to `paused` that would later be workaround-ed with `fluidd`/`mainsail` to re-define `CANCEL_PRINT`. This sets a proper canceled state, but additionally closes a file from a `virtual_sdcard` context for `canceled`/`error`, as this is no longer resumable from this point. Signed-off-by: Kamil Trzcinski <ayufan@ayufan.eu>
* print_stats: exclude time prior to first extrusion from "print_duration"Arksine2020-11-131-1/+10
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* gcode_move: Move GCodeMove class from gcode.py to new extras moduleKevin O'Connor2020-08-201-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Split G0/G1 command handling to new gcode_move classKevin O'Connor2020-08-201-3/+3
| | | | | | | | Split up the main GCodeParser class into GCodeDispatch and GCodeMove classes. The GCodeMove class is now available using the "gcode_move" printer object name. This split simplifies the gcode.py code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Convert get_status() last_xpos to use a namedtupleKevin O'Connor2020-08-201-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* print_stats: Add virtual_sdcard state trackingArksine2020-08-051-7/+21
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* print_stats: stat tracking for virtual sdcard prints in progressArksine2020-08-051-0/+64
Signed-off-by: Eric Callahan <arksine.code@gmail.com>