E-Steps is working

This commit is contained in:
sergiuToporjinschi
2022-01-30 20:07:23 +02:00
parent e2a0710442
commit f045c5d1dd
8 changed files with 67 additions and 37 deletions
+1 -2
View File
@@ -13,8 +13,7 @@ class Hooks():
events = []
def gCodeReceived(self, comm, line, *args, **kwargs):
if not self.collectCommand:
return line
if not self.collectCommand: return line
self._logger.debug("collectCommand is true, collecting info")
reg = re.compile("echo:\s*(?P<command>(?P<gCode>M\d{1,3}) X(?P<xVal>\d{1,3}.\d{1,3}) Y(?P<yVal>\d{1,3}.\d{1,3}) Z(?P<zVal>\d{1,3}.\d{1,3}) E(?P<eVal>\d{1,3}.\d{1,3}))")