X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fmotech-lps-30x%2Fapi.c;h=88e4449e55ac385d04bf2a743864cc177e0d5f65;hb=91057d2fc24c0ca058aa08c8ea6ada4eadf05ffd;hp=4ec35ff58f35b3a203c7edfd2b7928e7e399bb67;hpb=04891a997c137abb5fa423e7de7f5b9a0fd27a49;p=libsigrok.git diff --git a/src/hardware/motech-lps-30x/api.c b/src/hardware/motech-lps-30x/api.c index 4ec35ff5..88e4449e 100644 --- a/src/hardware/motech-lps-30x/api.c +++ b/src/hardware/motech-lps-30x/api.c @@ -386,8 +386,6 @@ static GSList *do_scan(lps_modelid modelid, struct sr_dev_driver *drv, GSList *o devc = NULL; conn = serialcomm = NULL; - sr_spew("scan() called!"); - /* Process and check options. */ if (sr_serial_extract_options(options, &conn, &serialcomm) != SR_OK) return NULL; @@ -576,9 +574,6 @@ static int config_set(uint32_t key, GVariant *data, const struct sr_dev_inst *sd int idx; gboolean found; - if (sdi->status != SR_ST_ACTIVE) - return SR_ERR_DEV_CLOSED; - devc = sdi->priv; /* Cannot change settings while acquisition active, would cause a mess with commands. @@ -764,9 +759,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi) struct dev_context *devc; struct sr_serial_dev_inst *serial; - if (sdi->status != SR_ST_ACTIVE) - return SR_ERR_DEV_CLOSED; - devc = sdi->priv; devc->acq_running = TRUE;