std_session_send_df_header(sdi);
+ if (SAMPLES_PER_FRAME > 0)
+ std_session_send_frame_begin(sdi);
+
/* We use this timestamp to decide how many more samples to send. */
devc->start_us = g_get_monotonic_time();
devc->spent_us = 0;
static int dev_acquisition_stop(struct sr_dev_inst *sdi)
{
sr_session_source_remove(sdi->session, -1);
+
+ if (SAMPLES_PER_FRAME > 0)
+ std_session_send_frame_end(sdi);
+
std_session_send_df_end(sdi);
return SR_OK;