]> sigrok.org Git - libsigrok.git/commit
hwdriver: introduce SR_CONF_FORCE_DETECT config key (scan option)
authorGerhard Sittig <redacted>
Sat, 1 Aug 2020 15:12:50 +0000 (17:12 +0200)
committerGerhard Sittig <redacted>
Sat, 22 Aug 2020 07:10:29 +0000 (09:10 +0200)
commitd643e6bc3942d7b7149a53b3091034d64eac0ad3
tree32ee2027d1cd3eb93796b10050d140f73c6859d3
parent048250d0e0a4cefdf192dbdb0e7f4dec3a881ed1
hwdriver: introduce SR_CONF_FORCE_DETECT config key (scan option)

Often previously unsupported models might be covered by existing code,
but would not match against a builtin list of known devices.

Introduce a config key which provides a scan option for users to force
the use of a driver with an unsupported device. This increases the
probability of requests for support of an additional model which are
associated with a successful use of that very device, and eliminates
the necessity to build from source for the trivial cases.

It's up to individual drivers whether they support forced detection,
and how they interpret the value of the scan option.
include/libsigrok/libsigrok.h
src/hwdriver.c