From 14e77b112c39c84dc1dbb553b0a3dda756c2ca90 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 28 Jun 2024 16:55:17 +1000 Subject: [PATCH] mavflightview.py: correct mapping of XKF1[100] .... and any instance with more than one digit.... --- MAVProxy/tools/mavflightview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAVProxy/tools/mavflightview.py b/MAVProxy/tools/mavflightview.py index db4f7e4210..4efcf5fdc7 100755 --- a/MAVProxy/tools/mavflightview.py +++ b/MAVProxy/tools/mavflightview.py @@ -293,7 +293,7 @@ def mavflightview_mav(mlog, options=None, flightmode_selections=[]): want_instances = {} recv_match_types = types[:] for i in range(len(recv_match_types)): - match = re.match('(?P.*)\[(?P[^\]+])\]', recv_match_types[i]) + match = re.match('(?P.*)\[(?P[^\]]+)\]', recv_match_types[i]) if match is not None: name = match.group("name") number = match.group("instancenum")