diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-08-02 20:27:34 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-08-02 20:27:34 -0400 |
commit | 82738955d2b99c5e91a84affff658ca978e058ec (patch) | |
tree | 21d15e61c7c25899290bdb4eb217c629fb9f329d | |
parent | f2d232ef7711803801b948ce8875b79130b5b7cc (diff) | |
download | kutter-82738955d2b99c5e91a84affff658ca978e058ec.tar.gz kutter-82738955d2b99c5e91a84affff658ca978e058ec.tar.xz kutter-82738955d2b99c5e91a84affff658ca978e058ec.zip |
virtual_sdcard: Check if other events need to run after each file read
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>
-rw-r--r-- | klippy/extras/virtual_sdcard.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/klippy/extras/virtual_sdcard.py b/klippy/extras/virtual_sdcard.py index 5d2780d7..d7a1fd72 100644 --- a/klippy/extras/virtual_sdcard.py +++ b/klippy/extras/virtual_sdcard.py @@ -160,6 +160,7 @@ class VirtualSD: lines[0] = partial_input + lines[0] partial_input = lines.pop() lines.reverse() + self.reactor.pause(self.reactor.NOW) continue # Dispatch command try: |