X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fmastech-ms6514%2Fapi.c;h=62d923c460e8fff8574318297bf20bbf2d54b599;hb=1a7adeac29d6331b53a2c78fc9c70429b32da0bd;hp=6e22dd6c344f5f3a646668b525289ea62786fb7a;hpb=cb828f1b3e00ccd0ad23d7cb98dca4d0d4749b07;p=libsigrok.git diff --git a/src/hardware/mastech-ms6514/api.c b/src/hardware/mastech-ms6514/api.c index 6e22dd6c..62d923c4 100644 --- a/src/hardware/mastech-ms6514/api.c +++ b/src/hardware/mastech-ms6514/api.c @@ -82,8 +82,8 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options) sr_info("Probing serial port %s.", conn); /* Let's get a bit of data and see if we can find a packet. */ - if (serial_stream_detect(serial, buf, &len, (2 * MASTECH_MS6514_FRAME_SIZE), - mastech_ms6514_packet_valid, 500) != SR_OK) + if (serial_stream_detect(serial, buf, &len, 2 * MASTECH_MS6514_FRAME_SIZE, + mastech_ms6514_packet_valid, NULL, NULL, 500) != SR_OK) goto scan_cleanup; sr_info("Found device on port %s.", conn);