change timeout
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 28 Sep 2012 06:33:08 +0000 (15:33 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Fri, 28 Sep 2012 06:33:08 +0000 (15:33 +0900)
tool/neug_upgrade.py

index c24404b..48d9a42 100755 (executable)
@@ -177,7 +177,7 @@ class neug(object):
     def stop_neug(self):
         self.__devhandle.controlMsg(requestType = 0x40, request = 255,
                                     value = 0, index = 0, buffer = None,
-                                    timeout = 10)
+                                    timeout = 1000)
         # self.__devhandle.releaseInterface()
         # self.__devhandle.setConfiguration(0)
         return
@@ -185,7 +185,7 @@ class neug(object):
     def mem_info(self):
         mem = self.__devhandle.controlMsg(requestType = 0xc0, request = 0,
                                           value = 0, index = 0, buffer = 8,
-                                          timeout = 10)
+                                          timeout = 1000)
         start = ((mem[3]*256 + mem[2])*256 + mem[1])*256 + mem[0]
         end = ((mem[7]*256 + mem[6])*256 + mem[5])*256 + mem[4]
         return (start, end)