aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/util.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-02-02 09:38:04 -0500
committerKevin O'Connor <kevin@koconnor.net>2018-02-02 11:00:46 -0500
commit56bfb3280a756ff4f71de258e37f6e230d4292d2 (patch)
tree7ae32746af926dbb4e86171cc79a7ffee095dd89 /klippy/util.py
parent3ddbd34a7c4b9cbe1676625162d4638cfad0b408 (diff)
downloadkutter-56bfb3280a756ff4f71de258e37f6e230d4292d2.tar.gz
kutter-56bfb3280a756ff4f71de258e37f6e230d4292d2.tar.xz
kutter-56bfb3280a756ff4f71de258e37f6e230d4292d2.zip
gcode: Keep reading input to check for M112 (emergency stop)
OctoPrint (and other software) will sometimes send additional commands even if the previous command has not yet responded with an "ok". Change the g-code input reading code to keep reading input so that an M112 can be detected (and processed out-of-order). To avoid the extreme case where one writes an entire g-code file to the input without any pacing, disable the input reading if more than 20 commands are pending. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/util.py')
0 files changed, 0 insertions, 0 deletions