From 264a91e6f7204ac7a963372aa5d0b0adcafdfdea Mon Sep 17 00:00:00 2001 From: sliptonic Date: Mon, 1 Apr 2019 11:11:20 -0500 Subject: [PATCH] path: smoothie post modified for python3 --- src/Mod/Path/PathScripts/post/smoothie_post.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Path/PathScripts/post/smoothie_post.py b/src/Mod/Path/PathScripts/post/smoothie_post.py index 6fcc907176..6929f1ba39 100644 --- a/src/Mod/Path/PathScripts/post/smoothie_post.py +++ b/src/Mod/Path/PathScripts/post/smoothie_post.py @@ -266,7 +266,7 @@ def sendToSmoothie(IP_ADDR, GCODE, fname): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.settimeout(4.0) s.connect((IP_ADDR, 115)) - tn= s.makefile() + tn= s.makefile(mode='rw') # read startup prompt ln= tn.readline()