From dcd9b75ff410ef17588d95cdb3f3f9183120405f Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Sat, 13 Oct 2018 15:51:15 +0200 Subject: [PATCH] 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 Signed-off-by: Sylvain Munaut --- src/std.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/std.c b/src/std.c index 47c3e5344..220681395 100644 --- a/src/std.c +++ b/src/std.c @@ -397,11 +397,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); } -- 2.16.4