- Settings split on heater index
-General impl of hookRegistered functions -registerRegexMsg recevies a compiled regex -single regex for all pid types of respond
This commit is contained in:
@@ -74,7 +74,7 @@ class API(octoprint.plugin.SimpleApiPlugin):
|
||||
self._printer.extrude(amount=int(extrudeLength), speed=int(extrudeSpeed))
|
||||
|
||||
@staticmethod
|
||||
def m92GCodeResponse(self, line, event):
|
||||
def m92GCodeResponse(self, line, regex, event):
|
||||
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}))")
|
||||
isM92command = reg.match(line)
|
||||
if isM92command:
|
||||
|
||||
Reference in New Issue
Block a user