From c01af877deb949697958f3ed68d6d071addb3388 Mon Sep 17 00:00:00 2001 From: Thomas Herrmann Date: Tue, 14 Sep 2021 11:13:21 +0200 Subject: [PATCH] Update cnc.py --- cnc.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cnc.py b/cnc.py index dc5a192..430c47d 100644 --- a/cnc.py +++ b/cnc.py @@ -42,7 +42,7 @@ def grblConnect2(): try: #print([comport.device for comport in serial.tools.list_ports.comports()]) print ("Trying...",device) - grbl = serial.Serial(port= device, baudrate= 115200, timeout =3) #dsrdtr= True) + grbl = serial.Serial(port= device, baudrate= 115200, timeout =.5) #dsrdtr= True) #grbl.open() #print(grbl.readline()) grbl.write(str.encode("\r\n\r\n")) @@ -223,7 +223,6 @@ def grblWrite(): def timedPositionRequest(): if grbl != 0 and freetosend == 1: - grbl_command = '?' byPass(grbl_command) root.after(1000, timedPositionRequest)