aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/virtual_sdcard.py
Commit message (Collapse)AuthorAgeFilesLines
* virtual_sdcard: Only return from M25 after print confirmed pausedKevin O'Connor2019-10-311-1/+2
| | | | | | | | | | Wait in the M25 command handler until the work_handler() background timer fully exits. This ensures that subsequent g-code commands (such as M27 or M24) will correctly report a paused state. Reported by @foosel. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Eliminate the process_batch() methodKevin O'Connor2019-06-091-4/+6
| | | | | | | Allow the callers of process_batch() to directly inspect the gcode mutex. Those callers can then directly invoke run_script(). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* virtual_sdcard: consistent sorting (#1387)Trevor Jones2019-04-141-2/+4
| | | Signed-off-by: Trevor Jones <trevorjones141@gmail.com>
* pause_resume: Implement send_pause_command()Arksine2019-03-011-2/+4
| | | | | | This allows for pausing from inside a reactor callback. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* virtual_sdcard: Don't list files starting with a '.'Kevin O'Connor2019-02-081-1/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* virtual_sdcard: prepare for pause_resume implementationArksine2019-01-281-1/+3
| | | | | | | - Add is_active() member function to return the active printing status of the virtual sdcard - M27 now reports current file position when file has been opened. See http://marlinfw.org/docs/gcode/M027.html Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* klippy: Convert printer_state("shutdown") to an event handlerKevin O'Connor2019-01-081-2/+3
| | | | | | | Convert all users of the printer_state("shutdown") handler to register a "klippy:shutdown" event handler instead. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: process_batch() should execute commands atomicallyKevin O'Connor2018-10-281-1/+1
| | | | | | | Update the process_batch() method so that it will not interleave commands read from the input fd with the batched commands. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* virtual_sdcard: Check if other events need to run after each file readKevin O'Connor2018-08-021-0/+1
| | | | | | | Periodically check if other events need to run - this prevents the virtual_sdcard processing from starving other events. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Raise an error if a duplicate command is registeredKevin O'Connor2018-05-201-0/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* virtual_sdcard: Add logging on start, stop, stats, and shutdownKevin O'Connor2018-04-231-0/+18
| | | | | | Add additional logging to the virtual_sdcard support. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Add minval/maxval/above/below options to get_X parsersKevin O'Connor2018-04-201-1/+1
| | | | | | Add value checking to gcode parameter parsing code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* virtual_sdcard: Fix typo in seek error handlingKevin O'Connor2018-03-121-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* display: Add initial support for LCD screens attached to an MCUKevin O'Connor2018-03-061-0/+5
| | | | | | | | Add support for displaying basic status information on ST7920 and HD44780 based LCDs that are attached directly to a micro-controller. Signed-off-by: Marcio Teixeira <marcio@alephobjects.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* virtual_sdcard: Remove trailing '*' checksum indicator from M23 commandKevin O'Connor2018-03-021-0/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* virtual_sdcard: Initial support for virtual sdcardKevin O'Connor2018-02-111-0/+155
Add support for directly printing from a local file on the host. This may be useful if the host cpu is not fast enough to run OctoPrint well. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>