X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fpipistrello-ols%2Fapi.c;h=8f9829666db820342cd7ab5eb03e8e4e0f58b6a2;hb=5dfa77b54a45b7a767b03c4dce41ea41e62816eb;hp=33339d6bcc86eb7250c5ff9b0880cd0a29d66fb4;hpb=b04cbd0ba3301396bd9e1e31c6f462087caf1de8;p=libsigrok.git diff --git a/src/hardware/pipistrello-ols/api.c b/src/hardware/pipistrello-ols/api.c index 33339d6b..8f982966 100644 --- a/src/hardware/pipistrello-ols/api.c +++ b/src/hardware/pipistrello-ols/api.c @@ -325,7 +325,7 @@ static int config_list(uint32_t key, GVariant **data, switch (key) { case SR_CONF_DEVICE_OPTIONS: - return STD_CONFIG_LIST(key, data, sdi, cg, NULL, drvopts, devopts); + return STD_CONFIG_LIST(key, data, sdi, cg, NO_OPTS, drvopts, devopts); case SR_CONF_SAMPLERATE: *data = std_gvar_samplerates_steps(ARRAY_AND_SIZE(samplerates)); break; @@ -557,13 +557,13 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi) arg[1] = ((readcount - 1) & 0xff00) >> 8; arg[2] = ((readcount - 1) & 0xff0000) >> 16; arg[3] = ((readcount - 1) & 0xff000000) >> 24; - if (write_longcommand(devc, CMD_CAPTURE_DELAY, arg) != SR_OK) + if (write_longcommand(devc, CMD_CAPTURE_READCOUNT, arg) != SR_OK) return SR_ERR; arg[0] = ((delaycount - 1) & 0xff); arg[1] = ((delaycount - 1) & 0xff00) >> 8; arg[2] = ((delaycount - 1) & 0xff0000) >> 16; arg[3] = ((delaycount - 1) & 0xff000000) >> 24; - if (write_longcommand(devc, CMD_CAPTURE_COUNT, arg) != SR_OK) + if (write_longcommand(devc, CMD_CAPTURE_DELAYCOUNT, arg) != SR_OK) return SR_ERR; /* Flag register. */ @@ -636,7 +636,7 @@ static int dev_acquisition_stop(struct sr_dev_inst *sdi) return SR_OK; } -SR_PRIV struct sr_dev_driver p_ols_driver_info = { +static struct sr_dev_driver p_ols_driver_info = { .name = "p-ols", .longname = "Pipistrello OLS", .api_version = 1,