Skip to content

Commit 14e77b1

Browse files
committed
mavflightview.py: correct mapping of XKF1[100]
.... and any instance with more than one digit....
1 parent 6bd0450 commit 14e77b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MAVProxy/tools/mavflightview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def mavflightview_mav(mlog, options=None, flightmode_selections=[]):
293293
want_instances = {}
294294
recv_match_types = types[:]
295295
for i in range(len(recv_match_types)):
296-
match = re.match('(?P<name>.*)\[(?P<instancenum>[^\]+])\]', recv_match_types[i])
296+
match = re.match('(?P<name>.*)\[(?P<instancenum>[^\]]+)\]', recv_match_types[i])
297297
if match is not None:
298298
name = match.group("name")
299299
number = match.group("instancenum")

0 commit comments

Comments
 (0)