Pass unitsize to srd_session_send() directly.
[sigrok-cli.git] / session.c
index b4ff3ffd9645abcd0fc081fae5e2f996bca9bcf0..7fb939948ba2b265078ecfce75bb7f267bb39516 100644 (file)
--- a/session.c
+++ b/session.c
@@ -281,7 +281,7 @@ void datafeed_in(const struct sr_dev_inst *sdi,
                if (opt_pds) {
 #ifdef HAVE_SRD
                        if (srd_session_send(srd_sess, rcvd_samples_logic, end_sample,
-                                       logic->data, input_len) != SRD_OK)
+                                       logic->data, input_len, logic->unitsize) != SRD_OK)
                                sr_session_stop(session);
 #endif
                }