]> sigrok.org Git - libsigrok.git/commitdiff
ols: send CMD_RESET on acquisition stop
authorBen Gardiner <redacted>
Tue, 22 Sep 2020 03:27:40 +0000 (03:27 +0000)
committerBen Gardiner <redacted>
Thu, 24 Sep 2020 12:54:32 +0000 (12:54 +0000)
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 <redacted>
src/hardware/openbench-logic-sniffer/protocol.c

index 4101995e53ba310a4c84764919c5cce352413a67..4f6400477b562848a9ff63892044760e06d137e7 100644 (file)
@@ -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);