X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fatten-pps3xxx%2Fapi.c;h=5ca3dbe99dc9fece512c1c8afbf96a1f7f5930e2;hb=43cd4637285833706f8a404ca027bcf0ee75b9ae;hp=e74c40de179dd3acdb9a19d6d5667ce6c7c43228;hpb=56d0d24535700fb53e47a25ad5c73d34697695fa;p=libsigrok.git diff --git a/hardware/atten-pps3xxx/api.c b/hardware/atten-pps3xxx/api.c index e74c40de..5ca3dbe9 100644 --- a/hardware/atten-pps3xxx/api.c +++ b/hardware/atten-pps3xxx/api.c @@ -167,7 +167,7 @@ static GSList *scan(GSList *options, int modelid) sdi->conn = serial; for (i = 0; i < MAX_CHANNELS; i++) { snprintf(channel, 10, "CH%d", i + 1); - ch = sr_channel_new(i, SR_PROBE_ANALOG, TRUE, channel); + ch = sr_channel_new(i, SR_CHANNEL_ANALOG, TRUE, channel); sdi->channels = g_slist_append(sdi->channels, ch); cg = g_malloc(sizeof(struct sr_channel_group)); cg->name = g_strdup(channel); @@ -470,7 +470,8 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, devc->acquisition_running = TRUE; serial = sdi->conn; - serial_source_add(serial, G_IO_IN, 50, atten_pps3xxx_receive_data, (void *)sdi); + serial_source_add(sdi->session, serial, G_IO_IN, 50, + atten_pps3xxx_receive_data, (void *)sdi); std_session_send_df_header(cb_data, LOG_PREFIX); /* Send a "channel" configuration packet now. */