1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2026-01-01 01:41:18 +01:00

Merge pull request #20661 from maribu/dist/tools/bmp

dist/tools/bmp: fix target parsing
This commit is contained in:
benpicco 2024-05-10 16:53:31 +00:00 committed by GitHub
commit c2e1a8e85c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,7 +85,7 @@ def detect_targets(gdbmi, res):
while True:
for msg in res:
if msg['type'] == 'target':
m = re.fullmatch(pattern=r"\s*(\d)+\s*(.*)\\n", string=msg['payload'])
m = re.fullmatch(pattern=r"\s*(\d+)\s*(.*)\s*", string=msg['payload'])
if m:
targets.append(m.group(2))
elif msg['type'] == 'result':