aboutsummaryrefslogtreecommitdiff
path: root/bin/cryptech_upload
diff options
context:
space:
mode:
authorFredrik Thulin <fredrik@thulin.net>2016-08-15 15:37:41 +0200
committerFredrik Thulin <fredrik@thulin.net>2016-08-15 15:37:41 +0200
commit7d4c495489ffa299118e3586d94d3a02af13a810 (patch)
treeaaf87aeff1ae7328c1acb710acd9b619866d6626 /bin/cryptech_upload
parent4758a8c13add7b04eda596595c7d192ffad9c3d5 (diff)
add test scriptHEADmaster
Diffstat (limited to 'bin/cryptech_upload')
-rwxr-xr-xbin/cryptech_upload10
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'