X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fasix-sigma%2Fasix-sigma.c;h=73834203fa4ad4b8207cd0edeca3cc15bd3b1039;hb=69cfcfc8f0f3f4358714d706268fc05aaa70ca23;hp=6527b00369cf54f0d1c70f97ebaaa820b57b3a44;hpb=3cd3a20b350ed1e86675aee067f60ac5a2f576b1;p=libsigrok.git diff --git a/hardware/asix-sigma/asix-sigma.c b/hardware/asix-sigma/asix-sigma.c index 6527b003..73834203 100644 --- a/hardware/asix-sigma/asix-sigma.c +++ b/hardware/asix-sigma/asix-sigma.c @@ -83,9 +83,9 @@ static const char *probe_names[NUM_PROBES + 1] = { }; static struct sr_samplerates samplerates = { - SR_KHZ(200), - SR_MHZ(200), - SR_HZ(0), + 0, + 0, + 0, supported_samplerates, }; @@ -711,12 +711,12 @@ static int hw_dev_close(int dev_index) if (!(sdi = sr_dev_inst_get(dev_insts, dev_index))) { sr_err("sigma: %s: sdi was NULL", __func__); - return SR_ERR; /* TODO: SR_ERR_ARG? */ + return SR_ERR_BUG; } if (!(ctx = sdi->priv)) { sr_err("sigma: %s: sdi->priv was NULL", __func__); - return SR_ERR; /* TODO: SR_ERR_ARG? */ + return SR_ERR_BUG; } /* TODO */