if (sdi)
_device_manager.use_device(sdi, this);
_sdi = sdi;
- update_signals();
+ update_signals(sdi);
}
void SigSession::release_device(struct sr_dev_inst *sdi)
assert(_capture_state == Stopped);
_sdi = NULL;
- update_signals();
+ update_signals(NULL);
}
void SigSession::load_file(const string &name,
return in;
}
-void SigSession::update_signals()
+void SigSession::update_signals(const sr_dev_inst *const sdi)
{
assert(_capture_state == Stopped);
unsigned int analog_probe_count = 0;
// Detect what data types we will receive
- if(_sdi) {
- for (const GSList *l = _sdi->probes; l; l = l->next) {
+ if(sdi) {
+ for (const GSList *l = sdi->probes; l; l = l->next) {
const sr_probe *const probe = (const sr_probe *)l->data;
if (!probe->enabled)
continue;
_signals.clear();
- if(_sdi) {
- for (const GSList *l = _sdi->probes; l; l = l->next) {
+ if(sdi) {
+ for (const GSList *l = sdi->probes; l; l = l->next) {
const sr_probe *const probe =
(const sr_probe *)l->data;
assert(probe);
private:
void set_capture_state(capture_state state);
- void update_signals();
+ void update_signals(const sr_dev_inst *const sdi);
bool is_trigger_enabled() const;