]> sigrok.org Git - libsigrok.git/commitdiff
uni-t-dmm: Expose hwopts.
authorUwe Hermann <redacted>
Sun, 20 Jan 2013 18:57:04 +0000 (19:57 +0100)
committerUwe Hermann <redacted>
Sun, 20 Jan 2013 18:57:04 +0000 (19:57 +0100)
hardware/uni-t-dmm/api.c

index 66d4ef48331779acff6757a26ae601aba556e139..7c6ad77f9cadae0a55cdce29f0ce74f4a73bdbdb 100644 (file)
 
 #define UNI_T_UT_D04_NEW "1a86.e008"
 
+static const int hwopts[] = {
+       SR_HWOPT_CONN,
+       0,
+};
+
 static const int hwcaps[] = {
        SR_HWCAP_MULTIMETER,
        SR_HWCAP_LIMIT_SAMPLES,
@@ -189,6 +194,9 @@ static int hw_info_get(int info_id, const void **data,
        sr_spew("Backend requested info_id %d.", info_id);
 
        switch (info_id) {
+       case SR_DI_HWOPTS:
+               *data = hwopts;
+               break;
        case SR_DI_HWCAPS:
                *data = hwcaps;
                sr_spew("%s: Returning hwcaps.", __func__);