Update fraucheky and change USB tool/
authorNIIBE Yutaka <gniibe@fsij.org>
Wed, 1 Jun 2016 00:56:38 +0000 (09:56 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Wed, 1 Jun 2016 00:56:38 +0000 (09:56 +0900)
ChangeLog
fraucheky
tool/neug_upgrade.py

index 4fcbbef..0262d9c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-06-01  NIIBE Yutaka  <gniibe@fsij.org>
+
+       * tool/neug_upgrade.py (regnual.__init__): Don't call
+       setAltInterface since we have no alternative.
+
 2016-05-31  NIIBE Yutaka  <gniibe@fsij.org>
 
        * src/main.c (main): Don't call fraucheky_main until configured.
 2016-05-31  NIIBE Yutaka  <gniibe@fsij.org>
 
        * src/main.c (main): Don't call fraucheky_main until configured.
index dca64e3..26e055a 160000 (submodule)
--- a/fraucheky
+++ b/fraucheky
@@ -1 +1 @@
-Subproject commit dca64e3c9605c5647b4212586b7ff5f6869305f7
+Subproject commit 26e055a77809cbbba2fec0529c91e94f341864f0
index c0e7d8e..3796e44 100755 (executable)
@@ -47,12 +47,7 @@ class regnual(object):
         if intf.interfaceClass != 0xff:
             raise ValueError("Wrong interface class")
         self.__devhandle = dev.open()
         if intf.interfaceClass != 0xff:
             raise ValueError("Wrong interface class")
         self.__devhandle = dev.open()
-        try:
-            self.__devhandle.setConfiguration(conf)
-        except:
-            pass
         self.__devhandle.claimInterface(intf)
         self.__devhandle.claimInterface(intf)
-        self.__devhandle.setAltInterface(intf)
 
     def mem_info(self):
         mem = self.__devhandle.controlMsg(requestType = 0xc0, request = 0,
 
     def mem_info(self):
         mem = self.__devhandle.controlMsg(requestType = 0xc0, request = 0,
@@ -158,8 +153,6 @@ class neug(object):
         if interface.interfaceSubClass != COM_SUBCLASS:
             raise ValueError("Wrong interface sub class")
         self.__devhandle = device.open()
         if interface.interfaceSubClass != COM_SUBCLASS:
             raise ValueError("Wrong interface sub class")
         self.__devhandle = device.open()
-        # self.__devhandle.claimInterface(interface)
-        # self.__devhandle.setAltInterface(interface)
 
         self.__intf = interface.interfaceNumber
         self.__alt = interface.alternateSetting
 
         self.__intf = interface.interfaceNumber
         self.__alt = interface.alternateSetting