/* Send message 03 "Query multimeter version and status" */
sdi->conn = serial;
- sdi->priv = devc;
if (req_stat14(sdi, TRUE) != SR_OK)
goto exit_err;
struct dev_context *devc;
int tracking_mode;
- devc = (struct dev_context *)sdi->priv;
+ devc = sdi->priv;
sr_spew("Status: %d", stat);
devc->channel_status[0].cc_mode = (stat & 0x01) != 0;
int stat, ret;
struct dev_context *devc;
- devc = (struct dev_context *)sdi->priv;
+ devc = sdi->priv;
devc->req_sent_at = g_get_real_time();
devc = sdi->priv;
scpi_cmd(sdi, devc->device->commands, SCPI_CMD_REMOTE);
- devc = sdi->priv;
devc->beeper_was_set = FALSE;
if (scpi_cmd_resp(sdi, devc->device->commands, &beeper,
G_VARIANT_TYPE_BOOLEAN, SCPI_CMD_BEEPER) == SR_OK) {
/* TODO: This stops acquisition on ALL devices, ignoring dev_index. */
static int dev_acquisition_stop(struct sr_dev_inst *sdi)
{
- struct dev_context *devc;
struct sr_usb_dev_inst *usb;
std_session_send_df_end(sdi, LOG_PREFIX);
- if (!(devc = sdi->priv)) {
- sr_err("%s: sdi->priv was NULL", __func__);
- return SR_ERR_BUG;
- }
-
usb = sdi->conn;
analyzer_reset(usb->devhdl);
/* TODO: Need to cancel and free any queued up transfers. */