projects
/
libsigrok.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
8e79890
)
ols: send CMD_RESET on acquisition stop
author
Ben Gardiner
<redacted>
Tue, 22 Sep 2020 03:27:40 +0000
(
03:27
+0000)
committer
Ben 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
patch
|
blob
|
blame
|
history
diff --git
a/src/hardware/openbench-logic-sniffer/protocol.c
b/src/hardware/openbench-logic-sniffer/protocol.c
index 4101995e53ba310a4c84764919c5cce352413a67..4f6400477b562848a9ff63892044760e06d137e7 100644
(file)
--- 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);