X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fnorma-dmm%2Fapi.c;h=6860a783d6ebfeb2db31e42de9bdd77ef8aae0aa;hb=13dd25bdb807217addc76e9c446485e28e6ec00a;hp=652e7bef312453684b51edba73639292748537a4;hpb=ba7dd8bbb8168cba432a844259a3e239aa5f36d7;p=libsigrok.git diff --git a/hardware/norma-dmm/api.c b/hardware/norma-dmm/api.c index 652e7bef..6860a783 100644 --- a/hardware/norma-dmm/api.c +++ b/hardware/norma-dmm/api.c @@ -128,7 +128,7 @@ static GSList *scan(GSList *options) sdi->conn = serial; sdi->priv = devc; sdi->driver = di; - if (!(ch = sr_probe_new(0, SR_PROBE_ANALOG, TRUE, + if (!(ch = sr_channel_new(0, SR_CHANNEL_ANALOG, TRUE, "P1"))) return NULL; sdi->channels = g_slist_append(sdi->channels, ch); @@ -250,9 +250,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, struct dev_context *devc; struct sr_serial_dev_inst *serial; - (void)sdi; - (void)cb_data; - if (!sdi || !cb_data || !(devc = sdi->priv)) return SR_ERR_BUG;