]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/hameg-hmo/api.c
sr_dev_open(): Set status to SR_ST_ACTIVE upon success.
[libsigrok.git] / src / hardware / hameg-hmo / api.c
index d4e184811763d20785302f514f70eeb770a07746..8e15a20d6d21bf9276c5f9fbbcdb8d59323f0b12 100644 (file)
@@ -131,14 +131,12 @@ static int dev_clear(const struct sr_dev_driver *di)
 
 static int dev_open(struct sr_dev_inst *sdi)
 {
-       if (sdi->status != SR_ST_ACTIVE && sr_scpi_open(sdi->conn) != SR_OK)
+       if (sr_scpi_open(sdi->conn) != SR_OK)
                return SR_ERR;
 
        if (hmo_scope_state_get(sdi) != SR_OK)
                return SR_ERR;
 
-       sdi->status = SR_ST_ACTIVE;
-
        return SR_OK;
 }