The the tutorial:
    # get an endpoint instance
     ep = usb.util.find_descriptor(
             dev.get_interface_altsetting(),   # first interface
             # match the first OUT endpoint
             custom_match = \
                 lambda e: \
                     usb.util.endpoint_direction(e.bEndpointAddress) == \
                     usb.util.ENDPOINT_OUT
         )


is used.
In the change log and code get_interface_altsetting was removed in the 
last version.
What's the trick here? Should I just try and use the first?




------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to