From 82738955d2b99c5e91a84affff658ca978e058ec Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 2 Aug 2018 20:27:34 -0400 Subject: [PATCH] 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 --- klippy/extras/virtual_sdcard.py | 1 + 1 file changed, 1 insertion(+) 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: