diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-10-18 11:51:35 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-10-28 18:39:45 -0400 |
commit | a5e55c2acc2650c70acd6bf852810e30fb959f96 (patch) | |
tree | cdf0c9cbb9f5b3000ee92ad3c3f46d09f652308f /klippy/extras/virtual_sdcard.py | |
parent | 37b9a2442ff661e736c15ae6ee5d1f1bcebd7b8d (diff) | |
download | kutter-a5e55c2acc2650c70acd6bf852810e30fb959f96.tar.gz kutter-a5e55c2acc2650c70acd6bf852810e30fb959f96.tar.xz kutter-a5e55c2acc2650c70acd6bf852810e30fb959f96.zip |
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 <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/virtual_sdcard.py')
-rw-r--r-- | klippy/extras/virtual_sdcard.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |