🐛 Improve firmware name splitting
Marlin includes the build time in it's firmware name, until now the expression split it on the colon, and failed to do it properly. Example format that now works: ``` FIRMWARE_NAME:Marlin 2.0.7.2 (Nov 27 2020 14:30:11) ```
This commit is contained in:
1 parent
535af4aa1d
commit
d091d2de28
1 file changed
+1
-1
@@ -182,7 +182,7 @@ Groups will be as follows:
|
||||
* ``value``: reported position value
|
||||
"""
|
||||
|
||||
regex_firmware_splitter = re.compile(r"\s*([A-Z0-9_]+):\s*")
|
||||
regex_firmware_splitter = re.compile(r"\s*([A-Z_]+):\s*")
|
||||
"""Regex to use for splitting M115 responses."""
|
||||
|
||||
regex_resend_linenumber = re.compile(r"(N|N:)?(?P<n>%s)" % regex_int_pattern)
|
||||
|
||||
Reference in new issue
Block a user