From 9f41641378bf7b6647aedb60f551755cbe9b972d Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 7 Mar 2018 19:12:50 +1100 Subject: [PATCH] Tools: make decode-devid print address in hex too --- Tools/scripts/decode_devid.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/scripts/decode_devid.py b/Tools/scripts/decode_devid.py index 70b8dc675b..3cf4a74ca8 100755 --- a/Tools/scripts/decode_devid.py +++ b/Tools/scripts/decode_devid.py @@ -69,6 +69,6 @@ if opts.compass: if opts.imu: decoded_devname = imu_types.get(devtype, "UNKNOWN") -print("bus_type:%s(%u) bus:%u address:%u devtype:%u(0x%x) %s" % ( +print("bus_type:%s(%u) bus:%u address:%u(0x%x) devtype:%u(0x%x) %s" % ( bustypes.get(bus_type,"UNKNOWN"), bus_type, - bus, address, devtype, devtype, decoded_devname)) + bus, address, address, devtype, devtype, decoded_devname))