return SR_ERR;
}
- probe_bit = (1 << (probe->index - 1));
+ probe_bit = (1 << (probe->index));
/* Configure the probe's trigger mask and trigger pattern. */
for (tc = probe->trigger; tc && *tc; tc++) {
return SR_OK;
}
-SR_PRIV int set_samplerate(struct sr_dev_inst *sdi, uint64_t samplerate)
+SR_PRIV int set_samplerate(const struct sr_dev_inst *sdi, uint64_t samplerate)
{
struct context *ctx;