}
devc->serial = serial;
+ devc->subdriver = dmm;
sdi->priv = devc;
sdi->driver = dmms[dmm].di;
/* Poll every 50ms, or whenever some data comes in. */
sr_source_add(devc->serial->fd, G_IO_IN, 50,
- dmms[sdi->driver->subdriver].receive_data, (void *)sdi);
+ dmms[devc->subdriver].receive_data, (void *)sdi);
return SR_OK;
}
.dev_acquisition_start = hw_dev_acquisition_start, \
.dev_acquisition_stop = hw_dev_acquisition_stop, \
.priv = NULL, \
- .subdriver = ID_UPPER, \
};
DRV(digitek_dt4000zc, DIGITEK_DT4000ZC, "digitek-dt4000zc", "Digitek DT4000ZC")