From: Sylvain Munaut Date: Sat, 13 Oct 2018 13:51:15 +0000 (+0200) Subject: std: Remove call to sr_dev_close from std_serial_dev_acquisition_stop X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=cfdc80151b106ae83f3380cb308d53314974257a;p=libsigrok.git std: Remove call to sr_dev_close from std_serial_dev_acquisition_stop There is no reason to close the entire device in acquisition_stop and this actually breaks pulseview on serial devices using this callback when running multiple acquisition cycles This fixes bug #1271. Signed-off-by: Sylvain Munaut --- diff --git a/src/std.c b/src/std.c index 4e069702..d93466e2 100644 --- a/src/std.c +++ b/src/std.c @@ -392,11 +392,6 @@ SR_PRIV int std_serial_dev_acquisition_stop(struct sr_dev_inst *sdi) return ret; } - if ((ret = sr_dev_close(sdi)) < 0) { - sr_err("%s: Failed to close device: %d.", prefix, ret); - return ret; - } - return std_session_send_df_end(sdi); }