Tools: make decode-devid print address in hex too

This commit is contained in:
Peter Barker 2018-03-07 19:12:50 +11:00
parent 72fab7d831
commit 9f41641378

View File

@ -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))