From f06102315d6e5311a8185d9c766c4c50108ec70f Mon Sep 17 00:00:00 2001 From: James O'Shannessy <12959316+joshanne@users.noreply.github.com> Date: Mon, 25 Mar 2024 13:22:32 +1100 Subject: [PATCH 1/2] misc: decode devid for all params starting with INS --- MAVProxy/modules/mavproxy_misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAVProxy/modules/mavproxy_misc.py b/MAVProxy/modules/mavproxy_misc.py index 5999b4b636..e6c671f41a 100644 --- a/MAVProxy/modules/mavproxy_misc.py +++ b/MAVProxy/modules/mavproxy_misc.py @@ -488,7 +488,7 @@ def cmd_devid(self, args): if p.startswith('COMPASS_DEV_ID') or p.startswith('COMPASS_PRIO') or ( p.startswith('COMPASS') and p.endswith('DEV_ID')): mp_util.decode_devid(self.mav_param[p], p) - if p.startswith('INS_') and p.endswith('_ID'): + if p.startswith('INS') and p.endswith('_ID'): mp_util.decode_devid(self.mav_param[p], p) if p.startswith('GND_BARO') and p.endswith('_ID'): mp_util.decode_devid(self.mav_param[p], p) From a54b71433a3224c41b623c21b97a4be83970eed7 Mon Sep 17 00:00:00 2001 From: James O'Shannessy <12959316+joshanne@users.noreply.github.com> Date: Mon, 25 Mar 2024 13:22:53 +1100 Subject: [PATCH 2/2] MAVExplorer: decode devid for all param starting with INS --- MAVProxy/tools/MAVExplorer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAVProxy/tools/MAVExplorer.py b/MAVProxy/tools/MAVExplorer.py index bf084c7b28..8608bf059a 100755 --- a/MAVProxy/tools/MAVExplorer.py +++ b/MAVProxy/tools/MAVExplorer.py @@ -1246,7 +1246,7 @@ def cmd_devid(args): if p.startswith('COMPASS_DEV_ID') or p.startswith('COMPASS_PRIO') or ( p.startswith('COMPASS') and p.endswith('DEV_ID')): mp_util.decode_devid(params[p], p) - if p.startswith('INS_') and p.endswith('_ID'): + if p.startswith('INS') and p.endswith('_ID'): mp_util.decode_devid(params[p], p) if p.startswith('GND_BARO') and p.endswith('_ID'): mp_util.decode_devid(params[p], p)