X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fdemo%2Fprotocol.c;h=eea3c9b8e7e622a72941ca23be952aa2e54c30e4;hb=83d14190b95707d7201555122317185520c80bd0;hp=a969d02995cb661c35ff54bf2891fbc018a1f28d;hpb=f216309fd0576dfe5bad25fa91ade3db35d66a5f;p=libsigrok.git diff --git a/src/hardware/demo/protocol.c b/src/hardware/demo/protocol.c index a969d029..eea3c9b8 100644 --- a/src/hardware/demo/protocol.c +++ b/src/hardware/demo/protocol.c @@ -714,7 +714,7 @@ SR_PRIV int demo_prepare_data(int fd, int revents, void *cb_data) devc->spent_us += todo_us; if (devc->limit_frames && devc->sent_frame_samples >= SAMPLES_PER_FRAME) { - std_session_send_frame_end(sdi); + std_session_send_df_frame_end(sdi); devc->sent_frame_samples = 0; devc->limit_frames--; if (!devc->limit_frames) { @@ -742,7 +742,7 @@ SR_PRIV int demo_prepare_data(int fd, int revents, void *cb_data) sr_dev_acquisition_stop(sdi); } else if (devc->limit_frames) { if (devc->sent_frame_samples == 0) - std_session_send_frame_begin(sdi); + std_session_send_df_frame_begin(sdi); } return G_SOURCE_CONTINUE;