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:
Gerhard Sittig 2020-09-27 07:50:14 +02:00
parent 6d8182b643
commit 7dd1dd9f7d
1 changed files with 1 additions and 1 deletions

View 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;
send_shortcommand(serial, CMD_RESET);
ols_send_reset(serial);
serial_source_remove(sdi->session, serial);