]> sigrok.org Git - libsigrok.git/commitdiff
ols: more robust device reset in acquisition stop
authorGerhard Sittig <redacted>
Sun, 27 Sep 2020 05:50:14 +0000 (07:50 +0200)
committerGerhard Sittig <redacted>
Sun, 27 Sep 2020 05:53:09 +0000 (07:53 +0200)
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

index 4f6400477b562848a9ff63892044760e06d137e7..8758ef88c07e7bf5e1619ba7885684679ea9d4ec 100644 (file)
@@ -346,7 +346,7 @@ SR_PRIV void abort_acquisition(const struct sr_dev_inst *sdi)
        struct sr_serial_dev_inst *serial;
 
        serial = sdi->conn;
        struct sr_serial_dev_inst *serial;
 
        serial = sdi->conn;
-       send_shortcommand(serial, CMD_RESET);
+       ols_send_reset(serial);
 
        serial_source_remove(sdi->session, serial);
 
 
        serial_source_remove(sdi->session, serial);