From: Joseph Lenox Date: Wed, 18 Apr 2018 23:34:48 +0000 (-0500) Subject: Fixed bug where newlines were stripped by accident by putting them back in. X-Git-Url: http://git.hcoop.net/clinton/Smoothieware.git/commitdiff_plain/721b502e381a8abf6e843f629164823450e4b16b Fixed bug where newlines were stripped by accident by putting them back in. --- diff --git a/smoothie-stream.py b/smoothie-stream.py index d46f1334..c3b50176 100644 --- a/smoothie-stream.py +++ b/smoothie-stream.py @@ -53,7 +53,7 @@ for line in f: line = re.sub("[ ]*;.*", '', line) # remove everything after ; line = line.strip() #send only the bare necessity. if len(line) > 0: - tn.write(line) + tn.write(line + "\n") linecnt+=1 rep= tn.read_eager() okcnt += rep.count("ok")