X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=device.c;fp=device.c;h=4cdae580076c0c51fcce8d3edee2c1b70b594a51;hp=04adcccf081d768f45d6cd9ecfafbd09b8ddbb65;hb=3f239f0803b9fbc073dd7abe9fc7b2a0c606fbb6;hpb=56d0d24535700fb53e47a25ad5c73d34697695fa diff --git a/device.c b/device.c index 04adcccf..4cdae580 100644 --- a/device.c +++ b/device.c @@ -143,7 +143,7 @@ SR_API int sr_dev_probe_enable(const struct sr_dev_inst *sdi, int channelnum, if (!state != !was_enabled && sdi->driver && sdi->driver->config_probe_set) { ret = sdi->driver->config_probe_set( - sdi, ch, SR_PROBE_SET_ENABLED); + sdi, ch, SR_CHANNEL_SET_ENABLED); /* Roll back change if it wasn't applicable. */ if (ret == SR_ERR_ARG) ch->enabled = was_enabled; @@ -195,7 +195,7 @@ SR_API int sr_dev_trigger_set(const struct sr_dev_inst *sdi, int channelnum, if (sdi->driver && sdi->driver->config_probe_set) { ret = sdi->driver->config_probe_set( - sdi, ch, SR_PROBE_SET_TRIGGER); + sdi, ch, SR_CHANNEL_SET_TRIGGER); /* Roll back change if it wasn't applicable. */ if (ret == SR_ERR_ARG) { g_free(ch->trigger);