_icon_grey(":/icons/status-grey.svg"),
_run_stop_button(this)
{
+ setObjectName(QString::fromUtf8("SamplingBar"));
+
connect(&_run_stop_button, SIGNAL(clicked()),
this, SLOT(on_run_stop()));
connect(&_device_selector, SIGNAL(currentIndexChanged (int)),
gvar, &num_opts, sizeof(int32_t));
for (unsigned int i = 0; i < num_opts; i++)
{
- switch (options[i]) {
+ switch (options[i] & SR_CONF_MASK) {
case SR_CONF_LIMIT_SAMPLES:
- _sample_count_supported = true;
+ if (options[i] & SR_CONF_SET)
+ _sample_count_supported = true;
break;
case SR_CONF_LIMIT_FRAMES:
- dev_inst->set_config(NULL, SR_CONF_LIMIT_FRAMES,
- g_variant_new_uint64(1));
+ if (options[i] & SR_CONF_SET)
+ dev_inst->set_config(NULL, SR_CONF_LIMIT_FRAMES,
+ g_variant_new_uint64(1));
break;
}
}