2012/4/6 Eric Hewett <[email protected]>:
[snip]
> It results in a pipe error
> while True:
> reply = self.dev.ctrl_transfer(0x07, 0x03,0, 1,None)
I think you should pass 33 instead of None to the last parameter, shouldn't you?
> if reply[0] != 0:
> _debug('Device should return zero in first byte - report
> code')
> break
> else:
> # if correctly initialised we should get a 0xff
> report = struct.unpack('32B', reply[1])
> _debug('Report length:', len(report))
> _debug(report)
> if report[0] == 0xff:
> break
>
> Sorry for length of email
>
--
Best Regards,
Wander Lairson Costa
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
pyusb-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyusb-users