X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fikalogic-scanaplus%2Fapi.c;h=79585f060dfc86f9d71209cd27f2567611bd7f82;hb=f1ba6b4b2c9a8ecf90bb31efb218752aa7e49d1a;hp=1bc17b73528c226979a9b0d353004fa2302dd0b1;hpb=093e1cba6b7bf14cfb77fa36f59b0c16e6fca7cc;p=libsigrok.git diff --git a/src/hardware/ikalogic-scanaplus/api.c b/src/hardware/ikalogic-scanaplus/api.c index 1bc17b73..79585f06 100644 --- a/src/hardware/ikalogic-scanaplus/api.c +++ b/src/hardware/ikalogic-scanaplus/api.c @@ -207,12 +207,11 @@ static int dev_open(struct sr_dev_inst *sdi) sr_dbg("Received ScanaPLUS device ID successfully: %02x %02x %02x.", devc->devid[0], devc->devid[1], devc->devid[2]); - sdi->status = SR_ST_ACTIVE; - return SR_OK; err_dev_open_close_ftdic: scanaplus_close(devc); + return SR_ERR; } @@ -222,8 +221,6 @@ static int dev_close(struct sr_dev_inst *sdi) devc = sdi->priv; - sdi->status = SR_ST_INACTIVE; - return scanaplus_close(devc); }