X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fnorma-dmm%2Fapi.c;h=6860a783d6ebfeb2db31e42de9bdd77ef8aae0aa;hb=d405193074b11296e33acb56945978c08f2f4f98;hp=7a98f9589f39eeade446246481375468fedad4d9;hpb=56d0d24535700fb53e47a25ad5c73d34697695fa;p=libsigrok.git diff --git a/hardware/norma-dmm/api.c b/hardware/norma-dmm/api.c index 7a98f958..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_channel_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;