Tools: uploader: translate board IDs into board type in incompat output

This commit is contained in:
Peter Barker 2020-06-03 10:53:41 +10:00 committed by Andrew Tridgell
parent 06012cbc56
commit db6fef7ebd

View File

@ -737,8 +737,11 @@ class uploader(object):
print("INFO: %s" % msg)
incomp = False
if incomp:
msg = "Firmware not suitable for this board (board_type=%u board_id=%u)" % (
self.board_type, fw.property('board_id'))
msg = "Firmware not suitable for this board (board_type=%u (%s) board_id=%u (%s))" % (
self.board_type,
self.board_name_for_board_id(self.board_type),
fw.property('board_id'),
self.board_name_for_board_id(fw.property('board_id')))
print("WARNING: %s" % msg)
if force: