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;
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. */