X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fhantek-6xxx%2Fapi.c;h=e815603fac7ba6cf4a497b9ca35ef1600a6352e5;hb=f778bf02eaf0d7fa7ccb91a0da8a68233f1fb79a;hp=e4e20e0a84da803a6adc9cc22cfcaa8add5e66a6;hpb=f670835f1fbc03525e995d6970a5495976ab7c1a;p=libsigrok.git diff --git a/src/hardware/hantek-6xxx/api.c b/src/hardware/hantek-6xxx/api.c index e4e20e0a..e815603f 100644 --- a/src/hardware/hantek-6xxx/api.c +++ b/src/hardware/hantek-6xxx/api.c @@ -167,7 +167,7 @@ static void clear_dev_context(void *priv) static int dev_clear(const struct sr_dev_driver *di) { - return std_dev_clear(di, clear_dev_context); + return std_dev_clear_with_callback(di, clear_dev_context); } static GSList *scan(struct sr_dev_driver *di, GSList *options) @@ -401,9 +401,6 @@ static int config_set(uint32_t key, GVariant *data, const struct sr_dev_inst *sd unsigned int i; const char *tmp_str; - if (sdi->status != SR_ST_ACTIVE) - return SR_ERR_DEV_CLOSED; - ret = SR_OK; devc = sdi->priv; if (!cg) {