Skip to content

Few fixes and updates against cleware#1

Open
andy-shev wants to merge 4 commits intofelipebalbi:masterfrom
andy-shev:master
Open

Few fixes and updates against cleware#1
andy-shev wants to merge 4 commits intofelipebalbi:masterfrom
andy-shev:master

Conversation

@andy-shev
Copy link

  • Fix exit when libusb backend is in use
  • Fix inconsistency with port numbering when reading and printing
  • Don't allow to enter port numbers less than 1
  • Allow to choose the HID API backend

  ./configure --with-hidapi=hidapi-libusb

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
With libusb backend the exit of the main() fails with

cleware: ../../libusb/os/threads_posix.h:58: usbi_mutex_destroy: Assertion `pthread_mutex_destroy(mutex) == 0' failed.

This is due to resource leakage which is fixed by closing HID device properly.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
@andy-shev
Copy link
Author

Felipe, can this be merged, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant