From: Jim E. <ji...@ji...> - 2009-01-02 14:51:49
|
Karl Ostmo wrote: > I use this approach in my code: > > try: > self.handle.claimInterface( 0 ) > except usb.USBError, e: > if e.message.find("could not claim interface") >= 0: > self.handle.detachKernelDriver( 0 ) > self.handle.claimInterface( 0 ) I'm the author of the weather station software David is trying to use. I call detachKernelDriver before calling claimInterface anyway, so I don't think this is David's problem. Is there an advantage in not calling detachKernelDriver unless claimInterface has failed? -- Jim Easterbrook <http://www.jim-easterbrook.me.uk/> |