]> sigrok.org Git - libsigrok.git/blobdiff - hardware/brymen-dmm/api.c
Additional build system fixes for C++/Python/Java bindings.
[libsigrok.git] / hardware / brymen-dmm / api.c
index 52b49a18a55888cf5d4ed6ad4558cf8053022a08..41a318124992632fd1f696efd97a6cea40e4e7c8 100644 (file)
@@ -75,7 +75,7 @@ static GSList *brymen_scan(const char *conn, const char *serialcomm)
 
        sr_info("Found device on port %s.", conn);
 
-       if (!(sdi = sr_dev_inst_new(0, SR_ST_INACTIVE, "Brymen", "BM85x", "")))
+       if (!(sdi = sr_dev_inst_new(0, SR_ST_INACTIVE, "Brymen", "BM85x", NULL)))
                goto scan_cleanup;
 
        if (!(devc = g_try_malloc0(sizeof(struct dev_context)))) {
@@ -89,7 +89,7 @@ static GSList *brymen_scan(const char *conn, const char *serialcomm)
        sdi->priv = devc;
        sdi->driver = di;
 
-       if (!(ch = sr_channel_new(0, SR_PROBE_ANALOG, TRUE, "P1")))
+       if (!(ch = sr_channel_new(0, SR_CHANNEL_ANALOG, TRUE, "P1")))
                goto scan_cleanup;
 
        sdi->channels = g_slist_append(sdi->channels, ch);