X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Flascar-el-usb%2Fprotocol.c;h=050b42bb1eb8494655f9072beac43272511769e0;hb=a4e435eb49c1fa30c31d5851b404001324cafe33;hp=eeb22199f36fdfe2dd74e17afed64fa6b5548d2c;hpb=ba7dd8bbb8168cba432a844259a3e239aa5f36d7;p=libsigrok.git diff --git a/hardware/lascar-el-usb/protocol.c b/hardware/lascar-el-usb/protocol.c index eeb22199..050b42bb 100644 --- a/hardware/lascar-el-usb/protocol.c +++ b/hardware/lascar-el-usb/protocol.c @@ -330,18 +330,18 @@ static struct sr_dev_inst *lascar_identify(unsigned char *config) if (profile->logformat == LOG_TEMP_RH) { /* Model this as two channels: temperature and humidity. */ - if (!(ch = sr_probe_new(0, SR_PROBE_ANALOG, TRUE, "Temp"))) + if (!(ch = sr_channel_new(0, SR_CHANNEL_ANALOG, TRUE, "Temp"))) return NULL; sdi->channels = g_slist_append(NULL, ch); - if (!(ch = sr_probe_new(0, SR_PROBE_ANALOG, TRUE, "Hum"))) + if (!(ch = sr_channel_new(0, SR_CHANNEL_ANALOG, TRUE, "Hum"))) return NULL; sdi->channels = g_slist_append(sdi->channels, ch); } else if (profile->logformat == LOG_CO) { - if (!(ch = sr_probe_new(0, SR_PROBE_ANALOG, TRUE, "CO"))) + if (!(ch = sr_channel_new(0, SR_CHANNEL_ANALOG, TRUE, "CO"))) return NULL; sdi->channels = g_slist_append(NULL, ch); } else { - if (!(ch = sr_probe_new(0, SR_PROBE_ANALOG, TRUE, "P1"))) + if (!(ch = sr_channel_new(0, SR_CHANNEL_ANALOG, TRUE, "P1"))) return NULL; sdi->channels = g_slist_append(NULL, ch); }