]> sigrok.org Git - libsigrok.git/commit - src/serial_hid.c
serial_hid: restrict .list() result set, supported chips only
authorGerhard Sittig <redacted>
Tue, 18 Jun 2019 17:26:04 +0000 (19:26 +0200)
committerGerhard Sittig <redacted>
Sun, 21 Aug 2022 15:45:11 +0000 (17:45 +0200)
commit74eeebfb6da68d128575eaeebdeeb588f7787808
treeb9840928cb8135adbe2214a08270d3a11e2fc54a
parentfbe1481a4cda038891d24679fd58e89375da17fe
serial_hid: restrict .list() result set, supported chips only

The --list-serial output was excessively large for the HID transport,
listing mice and keyboards and other stuff that could never by used
for serial communication. Especially when one device provided multiple
interfaces, and on Windows where paths are rather long by default.

Limit the result set of the HID transport's .list() operation. Only
consider connections that we know how to communicate to (supported
chip type). The others are not usable anyway, so there is no point in
presenting them to the user.
src/serial_hid.c