From 7dd1dd9f7d4d2cb17d3099453827db28c7e4262c Mon Sep 17 00:00:00 2001 From: Gerhard Sittig Date: Sun, 27 Sep 2020 07:50:14 +0200 Subject: [PATCH] ols: more robust device reset in acquisition stop Use the existing ols_send_reset() routine because acquisition termination can get initiated in several code paths. Make sure the device will cease activity whatever state it happens to be in. This amends commit 6d8182b643ae. --- src/hardware/openbench-logic-sniffer/protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hardware/openbench-logic-sniffer/protocol.c b/src/hardware/openbench-logic-sniffer/protocol.c index 4f640047..8758ef88 100644 --- a/src/hardware/openbench-logic-sniffer/protocol.c +++ b/src/hardware/openbench-logic-sniffer/protocol.c @@ -346,7 +346,7 @@ 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); + ols_send_reset(serial); serial_source_remove(sdi->session, serial); -- 2.30.2