#define NUM_PROBES 8
-static int hwcaps[] = {
+static const int hwcaps[] = {
SR_HWCAP_LOGIC_ANALYZER,
// SR_HWCAP_OSCILLOSCOPE,
// SR_HWCAP_PAT_GENERATOR,
};
static struct sr_samplerates samplerates = {
- SR_HZ(100),
- SR_MHZ(200),
- SR_HZ(0),
+ 0,
+ 0,
+ 0,
supported_samplerates,
};
if (!(sdi = sr_dev_inst_get(dev_insts, dev_index))) {
sr_err("mso19: %s: sdi was NULL", __func__);
- return SR_ERR; /* TODO: SR_ERR_ARG? */
+ return SR_ERR_BUG;
}
/* TODO */
return sdi->status;
}
-static int *hw_hwcap_get_all(void)
+static const int *hw_hwcap_get_all(void)
{
return hwcaps;
}
double analog_out[1024];
size_t i, s;
- revents = revents;
+ /* Avoid compiler warnings. */
+ (void)revents;
s = serial_read(fd, in, sizeof(in));
if (s <= 0)