From c5847014fdeba48c21d4a3d652609b090fe4dc63 Mon Sep 17 00:00:00 2001 From: "adam@algroup.co.uk" Date: Sat, 5 Sep 2009 08:46:59 +0000 Subject: [PATCH] clarify output --- tools/xorcheck.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/xorcheck.py b/tools/xorcheck.py index ddfcf82a..9cbc7a1e 100755 --- a/tools/xorcheck.py +++ b/tools/xorcheck.py @@ -25,10 +25,11 @@ import os if(len(sys.argv) < 3): print - print sys.argv[0] + ' - generate final byte for XOR CRC' + print '\t'+sys.argv[0] + ' - Generate final byte for XOR CRC' + print print 'Usage: ' + sys.argv[0] + ' ... ' print - print '\tSpecifying the bytes of a UID with a known CRC will generate the last byte value' + print '\tSpecifying the bytes of a UID with a known CRC will find the last byte value' print '\tneeded to generate that CRC with a rolling XOR. All bytes should be specified in HEX.' print print 'Example:' @@ -37,7 +38,7 @@ if(len(sys.argv) < 3): print print 'Should produce the output:' print - print '\tTarget matched with Byte value: 5A' + print '\tTarget (BA) matched with final byte value: 5A' print os._exit(True) @@ -50,6 +51,6 @@ for candidate in range(256): crc ^= candidate if (crc == target): print - print 'Target matched with Byte value: %02X' % candidate + print 'Target (%02X) matched with final byte value: %02X' % (target,candidate) print -- 2.39.2