]> sigrok.org Git - libsigrok.git/commitdiff
ols: Use serial source management wrappers.
authorMartin Ling <redacted>
Mon, 30 Dec 2013 03:00:41 +0000 (04:00 +0100)
committerUwe Hermann <redacted>
Mon, 30 Dec 2013 13:19:39 +0000 (14:19 +0100)
hardware/openbench-logic-sniffer/protocol.c

index 65e89e93820f5e629b513d528cafedd6f5036c93..7b5ea6a51067566f85c66f2de2bac2801fc087ab 100644 (file)
@@ -381,8 +381,8 @@ SR_PRIV int ols_receive_data(int fd, int revents, void *cb_data)
                 * longer than it takes to send a byte, that means it's
                 * finished. We'll double that to 30ms to be sure...
                 */
-               sr_source_remove(fd);
-               sr_source_add(fd, G_IO_IN, 30, ols_receive_data, cb_data);
+               serial_source_remove(serial);
+               serial_source_add(serial, G_IO_IN, 30, ols_receive_data, cb_data);
                devc->raw_sample_buf = g_try_malloc(devc->limit_samples * 4);
                if (!devc->raw_sample_buf) {
                        sr_err("Sample buffer malloc failed.");