]> sigrok.org Git - libsigrok.git/commitdiff
std: Remove call to sr_dev_close from std_serial_dev_acquisition_stop
authorSylvain Munaut <redacted>
Sat, 13 Oct 2018 13:51:15 +0000 (15:51 +0200)
committerUwe Hermann <redacted>
Sat, 2 Nov 2019 15:38:13 +0000 (16:38 +0100)
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 <redacted>
src/std.c

index 4e069702294d0a5d58344b5e3bf0c7fe2740d83c..d93466e2e6872c39549306cceaa659c7861b47a8 100644 (file)
--- 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);
 }