X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fstd.c;h=81f269fa92dc26ee73b9ca90081dc27039d010d9;hb=46a36bf0bb2e46f6aee28f629e950fb923c2884f;hp=d3a3d36dd175b6886882f42b1d6e7ab8764bcf96;hpb=7f7702b81bd9051a87fde54983561675329d5dc8;p=libsigrok.git diff --git a/src/std.c b/src/std.c index d3a3d36d..81f269fa 100644 --- a/src/std.c +++ b/src/std.c @@ -424,7 +424,7 @@ SR_PRIV int std_dev_clear_with_callback(const struct sr_dev_driver *driver, ret = SR_ERR_BUG; continue; } - if (driver->dev_close) + if (driver->dev_close && sdi->status == SR_ST_ACTIVE) driver->dev_close(sdi); if (sdi->conn) { @@ -928,3 +928,12 @@ SR_PRIV int std_dummy_set_params(struct sr_serial_dev_inst *serial, return SR_OK; } +SR_PRIV int std_dummy_set_handshake(struct sr_serial_dev_inst *serial, + int rts, int dtr) +{ + (void)serial; + (void)rts; + (void)dtr; + + return SR_OK; +}