static int dev_open(struct sr_dev_inst *sdi)
{
- sdi->status = SR_ST_ACTIVE;
+ (void)sdi;
return SR_OK;
}
static int dev_close(struct sr_dev_inst *sdi)
{
- sdi->status = SR_ST_INACTIVE;
+ (void)sdi;
return SR_OK;
}
devc = sdi->priv;
- if (sdi->status != SR_ST_ACTIVE)
- return SR_ERR_DEV_CLOSED;
-
ret = SR_OK;
switch (key) {
case SR_CONF_SAMPLERATE:
GHashTableIter iter;
void *value;
- if (sdi->status != SR_ST_ACTIVE)
- return SR_ERR_DEV_CLOSED;
-
devc = sdi->priv;
devc->sent_samples = 0;
static int dev_acquisition_stop(struct sr_dev_inst *sdi)
{
- sr_dbg("Stopping acquisition.");
sr_session_source_remove(sdi->session, -1);
std_session_send_df_end(sdi);