[Cryptech-Commits] [sw/stm32] branch master updated: Allow wheel to upload firmware/bitstreams

git at cryptech.is git at cryptech.is
Tue Jul 12 18:53:37 UTC 2016


This is an automated email from the git hooks/post-receive script.

paul at psgd.org pushed a commit to branch master
in repository sw/stm32.

The following commit(s) were added to refs/heads/master by this push:
       new  d05ae0e   Allow wheel to upload firmware/bitstreams
d05ae0e is described below

commit d05ae0e167690172533a4fdea603080cb4582f86
Author: Paul Selkirk <paul at psgd.org>
AuthorDate: Tue Jul 12 14:53:24 2016 -0400

    Allow wheel to upload firmware/bitstreams
---
 projects/hsm/cryptech_upload | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/projects/hsm/cryptech_upload b/projects/hsm/cryptech_upload
index 6d6d4f7..64b9440 100755
--- a/projects/hsm/cryptech_upload
+++ b/projects/hsm/cryptech_upload
@@ -128,11 +128,15 @@ def _execute(dst, cmd):
     _write(dst, "\r")
     prompt = _read(dst)
     if prompt.endswith("Username: "):
-        _write(dst, "so\r")
+        if sys.version_info[0] > 2:
+            user = input("Username (so, wheel): ")
+        else:
+            user = raw_input("Username (so, wheel): ")
+        _write(dst, user + "\r")
         prompt = _read(dst)
         if prompt.endswith("Password: "):
             if not pin:
-                pin = getpass.getpass("SO PIN: ")
+                pin = getpass.getpass("PIN: ")
             _write(dst, pin + "\r")
             prompt = _read(dst)
     if not prompt.endswith(("> ", "# ")):

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Commits mailing list