]> sigrok.org Git - libsigrok.git/blobdiff - hardware/link-mso19/api.c
Route sr_source_add for all serial devices through a serial_source_add wrapper.
[libsigrok.git] / hardware / link-mso19 / api.c
index 6a93ba94b4650a9859d6635bc89846409fb95659..56d7700adb84ab740e9f799e8e8c3aa5c2226d00 100644 (file)
@@ -473,7 +473,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data)
        /* Our first probe is analog, the other 8 are of type 'logic'. */
        /* TODO. */
 
-       sr_source_add(devc->serial->fd, G_IO_IN, -1, mso_receive_data, cb_data);
+       serial_source_add(devc->serial, G_IO_IN, -1, mso_receive_data, cb_data);
 
        return SR_OK;
 }