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:
commit
c2e1a8e85c
2
dist/tools/bmp/bmp.py
vendored
2
dist/tools/bmp/bmp.py
vendored
@ -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':
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user