From e87bbbb959363a8f5e9117368f9d1d3e82c8e820 Mon Sep 17 00:00:00 2001 From: Gerhard Sittig Date: Sat, 1 Aug 2020 15:51:28 +0200 Subject: [PATCH] uni-t-ut181a: drop serial flush() after open() The driver's call became obsolete when common code added flush() to the open() sequence. --- src/hardware/uni-t-ut181a/api.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/hardware/uni-t-ut181a/api.c b/src/hardware/uni-t-ut181a/api.c index 5e12e7da..53fdf18c 100644 --- 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 -- 2.30.2