Permalink
Commits on Jan 15, 2017
  1. Deprecate USBPollerThread.

    USBPollerThread expects an API which exists in only two standard python
    object types: poll and epoll (the latter available on linux only).
    But when using poll, the same long-pause issue as documented in USBPoller
    happens, this time forbidding use of synchronous API.
    Moreover, the presence of this class misleads users which would be better
    served just calling handleEvents in a loop (either their main loop or a
    separate thread).
    committed Jan 15, 2017
Commits on Jan 6, 2017
Commits on Jan 3, 2017
  1. Bump to 1.6.2 .

    Fix getASCIIStringDescriptor.
    committed Jan 3, 2017
Commits on Jan 2, 2017
  1. Bump to 1.6.1 .

    committed Jan 2, 2017
  2. usb1: Fix iterISO and getISOBufferList.

    Add tests for USBTransfer.setIsochronous .
    Also, update README.
    committed Jan 2, 2017
Commits on Dec 29, 2016
  1. getStringDescriptor: Fix support for null chars in utf16 encoding.

    Keep getASCIIStringDescriptor in sync.
    committed Dec 29, 2016
Commits on Nov 23, 2016
  1. Bump to 1.6 .

    committed Nov 23, 2016
  2. testUSB1: move inside usb1 package.

    This way, tests are installed everywhere without polluting top-level import
    namespace. It could then be run to detect installation-environment-specific
    issues.
    committed Nov 23, 2016
  3. usb1: Become a package.

    Also, deprecate top-level libusb1 module with a warning.
    committed Nov 23, 2016
Commits on Oct 16, 2016
  1. Use writeable buffer for transfers (sync & async).

    Avoids copying memory in python (string_at, create_string_buffer,
    (c_char * len(data))(*data)).
    Also, avoid the (c_... * int)(*string) pattern as it is very inefficient,
    at it likely moves memory around several times: for *arg magic by building
    a tuple of 1-char strings, then storing items in ctype array.
    committed Oct 16, 2016
Commits on Sep 15, 2016
  1. Bump to 1.5.3 .

    committed Sep 15, 2016
Commits on Sep 6, 2016
  1. Merge pull request #19 from charignon/fix_readme_typo

    Fix typo in Readme
    committed on GitHub Sep 6, 2016
Commits on Sep 5, 2016
  1. Fix typo in Readme

    This fixes a small typo in the Readme file.
    charignon committed Sep 5, 2016
Commits on Aug 21, 2016
  1. Bump to 1.5.2 .

    committed Aug 21, 2016
  2. Drop unused property.

    committed Aug 21, 2016
  3. Make USBTransfer.cancel raise error-specific classes instead of USBEr…

    …ror.
    
    As expected by USBDeviceHandle.close .
    committed Aug 21, 2016
Commits on Aug 17, 2016
  1. Bump to 1.5.1 .

    Also, document changes since 1.5.0 .
    committed Aug 17, 2016
  2. Make pylint happier.

    committed Aug 17, 2016
Commits on Aug 16, 2016
  1. Typo in comment.

    committed Aug 16, 2016
  2. usb1: Fix getSupportedLanguageList in python 3.

    With PEP238 division operator, dividing integers yields a float, and
    [x]range does not like floats. So use the floor division and use python3-
    style divisions everywhere, so such bug has less chances of creeping back
    in.
    committed Aug 16, 2016
  3. setup: Drop unused import.

    committed Aug 16, 2016
Commits on Jun 13, 2016
  1. USBPollerThread: (un) set fd notifiers at thread execution boundaries.

    There is no need to monitor file descriptors being added/removed past
    thread execution span.
    committed Jun 13, 2016