mirror of
https://github.com/keirf/greaseweazle-firmware.git
synced 2025-10-31 11:06:44 -07:00
mk_update: Display lengths of update payloads in 'verify' command
This commit is contained in:
@@ -86,9 +86,10 @@ def _verify_upd(d):
|
||||
crc16 = crcmod.predefined.Crc('crc-ccitt-false')
|
||||
crc16.update(d[4:upd_len+4])
|
||||
assert crc16.crcValue == 0
|
||||
print('%s %s v%u.%u' % (hw_model_to_name[hw_model],
|
||||
{b'BL': 'Boot', b'GW': 'Main'}[upd_type],
|
||||
major, minor))
|
||||
print('%s %s v%u.%u: %u bytes'
|
||||
% (hw_model_to_name[hw_model],
|
||||
{b'BL': 'Boot', b'GW': 'Main'}[upd_type],
|
||||
major, minor, upd_len))
|
||||
d = d[upd_len+4:]
|
||||
|
||||
def verify_upd(argv):
|
||||
|
||||
Reference in New Issue
Block a user