X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fopenbench-logic-sniffer%2Fapi.c;h=c9ca8f0a28eb8d734fd1474e689117024d7d4641;hb=aeabd30820bd3b685fb0bac83d1dc4a7faa32287;hp=c3e1647d3bbb1cf352d3f2945aa2b03b4c213b4f;hpb=986fde755d6bec3dfbf6d2bf4768ca359fc05174;p=libsigrok.git diff --git a/hardware/openbench-logic-sniffer/api.c b/hardware/openbench-logic-sniffer/api.c index c3e1647d..c9ca8f0a 100644 --- a/hardware/openbench-logic-sniffer/api.c +++ b/hardware/openbench-logic-sniffer/api.c @@ -21,6 +21,12 @@ #define SERIALCOMM "115200/8n1" +static const int hwopts[] = { + SR_HWOPT_CONN, + SR_HWOPT_SERIALCOMM, + 0, +}; + static const int hwcaps[] = { SR_HWCAP_LOGIC_ANALYZER, SR_HWCAP_SAMPLERATE, @@ -250,6 +256,9 @@ static int hw_info_get(int info_id, const void **data, struct dev_context *devc; switch (info_id) { + case SR_DI_HWOPTS: + *data = hwopts; + break; case SR_DI_HWCAPS: *data = hwcaps; break;