This commit is contained in:
Lars Nolden
2026-07-24 13:57:13 +02:00
parent fc8813c14a
commit 50a9ee8c58
16 changed files with 206 additions and 32 deletions
+3 -1
View File
@@ -27,7 +27,9 @@ _DLL_RE = re.compile(
r"M=(?P<mhex>[0-9a-fA-F]+) \((?P<mfct>[A-Z?]+)\) "
r"A=(?P<id>\w+) "
r"VER=(?P<ver>[0-9a-fA-F]+) "
r"TYPE=(?P<type>[0-9a-fA-F]+) \((?P<media>[^)]*)\) "
# media can itself contain parentheses, e.g. "Radio converter (meter side)";
# match lazily up to the " (driver ...)" that always follows.
r"TYPE=(?P<type>[0-9a-fA-F]+) \((?P<media>.*?)\) "
r"\(driver (?P<driver>\w+)\)"
r"(?:.*?RSSI=(?P<rssi>-?\d+))?"
)