fix(gcode_shell_command): py3 virtual env compatibility (#175)

This commit is contained in:
Alex Zellner
2022-02-26 19:28:06 +01:00
committed by GitHub
parent 4517415e9d
commit 6c4635fa4e

View File

@@ -32,7 +32,7 @@ class ShellCommand:
data = os.read(self.proc_fd, 4096)
except Exception:
pass
data = self.partial_output + data
data = self.partial_output + data.decode()
if '\n' not in data:
self.partial_output = data
return