From a5e55c2acc2650c70acd6bf852810e30fb959f96 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 18 Oct 2018 11:51:35 -0400 Subject: gcode: process_batch() should execute commands atomically 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 --- klippy/extras/virtual_sdcard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/extras/virtual_sdcard.py') diff --git a/klippy/extras/virtual_sdcard.py b/klippy/extras/virtual_sdcard.py index d7a1fd72..1a0fc2a8 100644 --- a/klippy/extras/virtual_sdcard.py +++ b/klippy/extras/virtual_sdcard.py @@ -164,7 +164,7 @@ class VirtualSD: continue # Dispatch command try: - res = self.gcode.process_batch(lines[-1]) + res = self.gcode.process_batch([lines[-1]]) if not res: self.reactor.pause(self.reactor.monotonic() + 0.100) continue -- cgit v1.2.3-70-g09d2