diff options
author | Fredrik Thulin <fredrik@thulin.net> | 2016-08-15 15:37:41 +0200 |
---|---|---|
committer | Fredrik Thulin <fredrik@thulin.net> | 2016-08-15 15:37:41 +0200 |
commit | 7d4c495489ffa299118e3586d94d3a02af13a810 (patch) | |
tree | aaf87aeff1ae7328c1acb710acd9b619866d6626 /bin/cryptech_upload | |
parent | 4758a8c13add7b04eda596595c7d192ffad9c3d5 (diff) |
Diffstat (limited to 'bin/cryptech_upload')
-rwxr-xr-x | bin/cryptech_upload | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/cryptech_upload b/bin/cryptech_upload index 3222e2e..d58ecd5 100755 --- a/bin/cryptech_upload +++ b/bin/cryptech_upload @@ -110,10 +110,10 @@ def parse_args(): def _write(dst, data): dst.write(data) - #if len(data) == 4: - # print("Wrote 0x{!s}".format(data.encode("hex"))) - #else: - # print("Wrote {!r}".format(data)) + if len(data) == 4: + print("Wrote 0x{!s}".format(data.encode("hex"))) + else: + print("Wrote {!r}".format(data)) def _read(dst): @@ -124,7 +124,7 @@ def _read(dst): while x: res += x x = dst.read(1) - #print ("Read {!r}".format(res)) + print ("Read {!r}".format(res)) return res wheel_pin = 'YouReallyNeedToChangeThisPINRightNowWeAreNotKidding' |