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 <tnt@246tNt.com>
This commit is contained in:
parent
f216309fd0
commit
cfdc80151b
|
@ -392,11 +392,6 @@ SR_PRIV int std_serial_dev_acquisition_stop(struct sr_dev_inst *sdi)
|
||||||
return ret;
|
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);
|
return std_session_send_df_end(sdi);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue