projects
/
libsigrok.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
deb7615
)
uni-t-ut181a: drop serial flush() after open()
author
Gerhard Sittig
<gerhard.sittig@gmx.net>
Sat, 1 Aug 2020 13:51:28 +0000
(15:51 +0200)
committer
Gerhard Sittig
<gerhard.sittig@gmx.net>
Wed, 22 Dec 2021 19:06:02 +0000
(20:06 +0100)
The driver's call became obsolete when common code added flush() to the
open() sequence.
src/hardware/uni-t-ut181a/api.c
patch
|
blob
|
history
diff --git
a/src/hardware/uni-t-ut181a/api.c
b/src/hardware/uni-t-ut181a/api.c
index 5e12e7dae60cc2880cd4744bd0e3c5c160135f01..53fdf18cf9d59300e688641325b3a6d1a4116488 100644
(file)
--- a/
src/hardware/uni-t-ut181a/api.c
+++ b/
src/hardware/uni-t-ut181a/api.c
@@
-203,7
+203,6
@@
static GSList *scan(struct sr_dev_driver *di, GSList *options)
serial = sr_serial_dev_inst_new(conn, serialcomm);
ret = serial_open(serial, SERIAL_RDWR);
snprintf(conn_id, sizeof(conn_id), "%s", serial->port);
- serial_flush(serial);
/*
* We cannot identify the device at this point in time.
* Successful open shall suffice for now. More activity