From: Gerhard Sittig Date: Sun, 27 Sep 2020 05:50:14 +0000 (+0200) Subject: ols: more robust device reset in acquisition stop X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=7dd1dd9f7d4d2cb17d3099453827db28c7e4262c 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. --- 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);