gcode_shell_command: Fix issue with partial lines being repeated (#118)

Without clearing the partial line on a full line being sent the self.partial_output was repeated for every subsequent line.
This commit is contained in:
Richard Mitchell authored and GitHub committed 2021-09-27 17:44:11 +02:00
1 parent 1e8c379623
commit 6d87716b1d
1 file changed
+2
+2
View File
@@ -40,6 +40,8 @@ class ShellCommand:
split = data.rfind('\n') + 1
self.partial_output = data[split:]
data = data[:split]
else:
self.partial_output = ""
self.gcode.respond_info(data)
cmd_RUN_SHELL_COMMAND_help = "Run a linux shell command"