X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Ffx2lafw%2Fapi.c;h=00b8ad5d0eefc6b78736bd92bed99dbd271e017f;hb=46641facd4ad8de4a93910d7089c7b289b412443;hp=b11a2e1a93ea4fd47ef8f0adce761c14a0570d18;hpb=ba7dd8bbb8168cba432a844259a3e239aa5f36d7;p=libsigrok.git diff --git a/hardware/fx2lafw/api.c b/hardware/fx2lafw/api.c index b11a2e1a..00b8ad5d 100644 --- a/hardware/fx2lafw/api.c +++ b/hardware/fx2lafw/api.c @@ -197,7 +197,7 @@ static GSList *scan(GSList *options) /* Fill in channellist according to this device's profile. */ num_logic_channels = prof->dev_caps & DEV_CAPS_16BIT ? 16 : 8; for (j = 0; j < num_logic_channels; j++) { - if (!(ch = sr_probe_new(j, SR_PROBE_LOGIC, TRUE, + if (!(ch = sr_channel_new(j, SR_CHANNEL_LOGIC, TRUE, channel_names[j]))) return NULL; sdi->channels = g_slist_append(sdi->channels, ch); @@ -483,7 +483,8 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) } devc->cb_data = cb_data; - devc->num_samples = 0; + devc->sent_samples = 0; + devc->acq_aborted = FALSE; devc->empty_transfer_count = 0; timeout = fx2lafw_get_timeout(devc);