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 6d8182b643
.
This commit is contained in:
parent
6d8182b643
commit
7dd1dd9f7d
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue