fix tool/neug_upgrade.py
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 11 Sep 2015 08:25:44 +0000 (17:25 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Fri, 11 Sep 2015 08:25:44 +0000 (17:25 +0900)
chopstx
tool/neug_upgrade.py

diff --git a/chopstx b/chopstx
index 14ad395..4705e2f 160000 (submodule)
--- a/chopstx
+++ b/chopstx
@@ -1 +1 @@
-Subproject commit 14ad39552361815e17ddf9764228a093489555f7
+Subproject commit 4705e2fb15ae58cc47a3df100949b07931d53526
index 2538f6b..c0e7d8e 100755 (executable)
@@ -311,7 +311,7 @@ def main(wait_e, passwd, data_regnual, data_upgrade):
     com = None
     #
     reg = None
-    while not reg:
+    while reg == None:
         print("Wait %d seconds..." % wait_e)
         time.sleep(wait_e)
         for dev in gnuk_devices_by_vidpid():
@@ -333,7 +333,7 @@ def main(wait_e, passwd, data_regnual, data_upgrade):
 
 
 # This should be event driven, not guessing some period.
-DEFAULT_WAIT_FOR_REENUMERATION=10
+DEFAULT_WAIT_FOR_REENUMERATION=3
 
 if __name__ == '__main__':
     passwd = None