if (sdi->status != SR_ST_ACTIVE)
return SR_ERR_DEV_CLOSED;
- if (!(devc = sdi->priv))
- return SR_ERR_BUG;
-
+ devc = sdi->priv;
devc->cb_data = cb_data;
-
serial = sdi->conn;
sr_spew("Set O1 mode (continuous values, stable and unstable ones).");
devc->num_samples = 0;
devc->starttime = g_get_monotonic_time();
- /* Send header packet to the session bus. */
std_session_send_df_header(cb_data, LOG_PREFIX);
/* Poll every 50ms, or whenever some data comes in. */