From: Ben Gardiner Date: Tue, 22 Sep 2020 03:27:40 +0000 (+0000) Subject: ols: send CMD_RESET on acquisition stop X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=6d8182b643ae;p=libsigrok.git ols: send CMD_RESET on acquisition stop Sending CMD_RESET will interrupt armed/untriggered acquisitions which is very useful in Pulseview sessions since, without this, a next 'run' will hang. Signed-off-by: Ben Gardiner --- diff --git a/src/hardware/openbench-logic-sniffer/protocol.c b/src/hardware/openbench-logic-sniffer/protocol.c index 4101995e..4f640047 100644 --- a/src/hardware/openbench-logic-sniffer/protocol.c +++ b/src/hardware/openbench-logic-sniffer/protocol.c @@ -346,6 +346,8 @@ SR_PRIV void abort_acquisition(const struct sr_dev_inst *sdi) struct sr_serial_dev_inst *serial; serial = sdi->conn; + send_shortcommand(serial, CMD_RESET); + serial_source_remove(sdi->session, serial); std_session_send_df_end(sdi);