]> sigrok.org Git - libsigrok.git/commitdiff
feed queue: unbreak MQ and unit support in analog feeds
authorGerhard Sittig <redacted>
Sun, 5 Mar 2023 17:06:30 +0000 (18:06 +0100)
committerGerhard Sittig <redacted>
Sun, 5 Mar 2023 17:11:20 +0000 (18:11 +0100)
Unbreak the compilation of the feed queue. The error was introduced
in commit 43e6f7a7798f which added MQ and unit support.

src/input/feed_queue.c

index ca91af3756602d7ccb50fe47de365d2eef817e8f..5914127b9d3335f09673780670324824b4caac51 100644 (file)
@@ -180,9 +180,9 @@ SR_API int feed_queue_analog_params(struct feed_queue_analog *q,
        if (q->scale_factor == 1.0)
                q->scale_factor = 0.0;
 
-       q->meaning->mq = mq;
-       q->meaning->mqflags = mqflags;
-       q->meaning->unit = unit;
+       q->meaning.mq = mq;
+       q->meaning.mqflags = mq_flag;
+       q->meaning.unit = unit;
 
        return SR_OK;
 }