Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | idle_timeout: Added a missing logging import | Samori Gorse | 2019-01-29 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | I noticed Octoprint was disconnecting after a while, and after reading the logs, I came across this error: ``` Unhandled exception during run Traceback (most recent call last): File "/home/pi/klipper/klippy/klippy.py", line 171, in run self.reactor.run() File "/home/pi/klipper/klippy/reactor.py", line 176, in run g_next.switch() File "/home/pi/klipper/klippy/reactor.py", line 203, in _dispatch_loop timeout = self._check_timers(eventtime) File "/home/pi/klipper/klippy/reactor.py", line 82, in _check_timers t.waketime = t.callback(eventtime) File "/home/pi/klipper/klippy/extras/idle_timeout.py", line 62, in timeout_handler return self.check_idle_timeout(eventtime) File "/home/pi/klipper/klippy/extras/idle_timeout.py", line 59, in check_idle_timeout return self.transition_idle_state(eventtime) File "/home/pi/klipper/klippy/extras/idle_timeout.py", line 35, in transition_idle_state logging.exception("idle timeout gcode execution") NameError: global name 'logging' is not defined ``` I therefore added the missing import. Signed-off-by: Samori Gorse <samori.gorse+github@gmail.com> | ||||
* | klippy: Convert printer_state("ready") to an event handler | Kevin O'Connor | 2019-01-08 | 1 | -7/+6 |
| | | | | | | | Convert all users of the printer_state("ready") handler to register a "klippy:ready" event handler instead. Signed-off-by: Kevin O'Connor <kevin@koconnor.net> | ||||
* | idle_timeout: Add printing/ready/idle tracking | Kevin O'Connor | 2018-10-28 | 1 | -21/+65 |
| | | | | | | | Internally track the overall printer state. Generate events on state transitions. Signed-off-by: Kevin O'Connor <kevin@koconnor.net> | ||||
* | gcode: process_batch() should execute commands atomically | Kevin O'Connor | 2018-10-28 | 1 | -9/+9 |
| | | | | | | | 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> | ||||
* | heater: Add new TURN_OFF_HEATERS command | Kevin O'Connor | 2018-09-18 | 1 | -0/+1 |
| | | | | | | | Add a command that will turn off all heaters in the printer. Run this command in the default idle_timeout action. Signed-off-by: Kevin O'Connor <kevin@koconnor.net> | ||||
* | idle_timeout: Move timeout handling from toolhead.py to new extras module | Kevin O'Connor | 2018-07-16 | 1 | -0/+48 |
Move the "motor_off_timeout" tracking to a new module in the extras/ directory. This makes it easier to customize the idle timeout behavior. Signed-off-by: Kevin O'Connor <kevin@koconnor.net> |