]> sigrok.org Git - libsigrok.git/blobdiff - hardware/asix-sigma/asix-sigma.c
sr_dev_inst_new(): Use NULL (not "") if version unknown/nonexisting.
[libsigrok.git] / hardware / asix-sigma / asix-sigma.c
index 5ec308374c54b4bf0b352c0941f0f7c0e82982c3..dbd4ddf941e44ed2af94a2e3bd13b0dd330faa13 100644 (file)
@@ -36,7 +36,6 @@
 #define USB_DESCRIPTION                        "ASIX SIGMA"
 #define USB_VENDOR_NAME                        "ASIX"
 #define USB_MODEL_NAME                 "SIGMA"
-#define USB_MODEL_VERSION              ""
 #define TRIGGER_TYPE                   "rf10"
 #define NUM_CHANNELS                   16
 
@@ -71,6 +70,7 @@ static const char *channel_names[NUM_CHANNELS + 1] = {
 static const int32_t hwcaps[] = {
        SR_CONF_LOGIC_ANALYZER,
        SR_CONF_SAMPLERATE,
+       SR_CONF_TRIGGER_TYPE,
        SR_CONF_CAPTURE_RATIO,
        SR_CONF_LIMIT_MSEC,
 };
@@ -457,7 +457,7 @@ static GSList *scan(GSList *options)
 
        /* Register SIGMA device. */
        if (!(sdi = sr_dev_inst_new(0, SR_ST_INITIALIZING, USB_VENDOR_NAME,
-                                   USB_MODEL_NAME, USB_MODEL_VERSION))) {
+                                   USB_MODEL_NAME, NULL))) {
                sr_err("%s: sdi was NULL", __func__);
                goto free;
        }