]> sigrok.org Git - libsigrok.git/blobdiff - hardware/motech-lps-30x/api.c
build: Portability fixes.
[libsigrok.git] / hardware / motech-lps-30x / api.c
index bc10702adf4660cecea401fc601d2052e1bd921c..164a9cc02321d88656018a93e0879cf765f6dc17 100644 (file)
@@ -612,7 +612,7 @@ static int config_set(int key, GVariant *data, const struct sr_dev_inst *sdi,
 
        devc = sdi->priv;
 
-       /* Cannot change settings while aquisition active, would cause a mess with commands.
+       /* Cannot change settings while acquisition active, would cause a mess with commands.
         * Changing this would be possible, but tricky. */
        if (devc->acq_running)
                return SR_ERR_NA;
@@ -814,7 +814,8 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi,
        devc->acq_running = TRUE;
 
        serial = sdi->conn;
-       serial_source_add(serial, G_IO_IN, 50, motech_lps_30x_receive_data, (void *)sdi);
+       serial_source_add(sdi->session, serial, G_IO_IN, 50,
+                       motech_lps_30x_receive_data, (void *)sdi);
        std_session_send_df_header(cb_data, LOG_PREFIX);
 
        /* Start timer, if required. */