X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fappa-55ii%2Fapi.c;h=14211c6a92df90eb4f546d561d9517a60a93d5bd;hb=1a7adeac29d6331b53a2c78fc9c70429b32da0bd;hp=81eafdce3ff1c809c1e23a1f9d671710ed30a117;hpb=d03815a0662a905392e428612507ad4de9f2f8b1;p=libsigrok.git diff --git a/src/hardware/appa-55ii/api.c b/src/hardware/appa-55ii/api.c index 81eafdce..14211c6a 100644 --- a/src/hardware/appa-55ii/api.c +++ b/src/hardware/appa-55ii/api.c @@ -79,11 +79,9 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options) sr_info("Probing serial port %s.", conn); - serial_flush(serial); - /* Let's get a bit of data and see if we can find a packet. */ if (serial_stream_detect(serial, buf, &len, 25, - appa_55ii_packet_valid, 500) != SR_OK) + appa_55ii_packet_valid, NULL, NULL, 500) != SR_OK) goto scan_cleanup; sr_info("Found device on port %s.", conn);