Output hwid while scanning.

This commit is contained in:
Markus Birth 2020-11-10 23:18:34 +01:00
parent fcffd1ef78
commit 65e0fc8ec2
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A

View File

@ -86,7 +86,7 @@ for i, sku in enumerate(device_skus):
if device_skus[0][0:5] == "006-B":
primary_hwid = int(device_skus[0][5:9])
device_name = devices.DEVICES.get(primary_hwid, "Unknown device")
print("Device (guessed): {}".format(device_name))
print("Device {:04d} (guessed): {}".format(primary_hwid, device_name))
if opts.unit_id:
print("Custom Unit ID: {}".format(opts.unit_id))