* Fixes issue #13
This commit is contained in:
Sergiu Toporjinschi
2022-02-15 19:21:58 +02:00
committed by GitHub
parent 81a52c8373
commit 85f285ce58
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ class API(octoprint.plugin.SimpleApiPlugin):
@staticmethod @staticmethod
def m92GCodeResponse(self, line, regex, 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}))") reg = re.compile(".*\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) isM92command = reg.match(line)
if isM92command: if isM92command:
command = isM92command.group("command") command = isM92command.group("command")
+1 -1
View File
@@ -14,7 +14,7 @@ plugin_package = "octoprint_CalibrationTools"
plugin_name = "OctoPrint-CalibrationTools" plugin_name = "OctoPrint-CalibrationTools"
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module # The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
plugin_version = "1.0.2" plugin_version = "1.0.3"
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin # The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
# module # module