gcode_shell_command: change to make it compatible with a py3 virtual env

The change is needed that the module can be used in a python 2 and python 3 virtual env.

Signed-off-by: Alex Zellner alexander.zellner@googlemail.com
This commit is contained in:
zellneralex
2022-02-26 19:25:59 +01:00
parent 4517415e9d
commit 25b144d0d9

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