X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fconrad-digi-35-cpu%2Fapi.c;h=6a1f31c9a952d1777d23094f0ae4d10bce36d7d2;hb=db560903d196c39bceeaa543317fa602a02b51ac;hp=01adcef8ab2fec517fb322b0024d5ce5dd991122;hpb=155b680da482cea2381becb73c51cfb838bff31e;p=libsigrok.git diff --git a/src/hardware/conrad-digi-35-cpu/api.c b/src/hardware/conrad-digi-35-cpu/api.c index 01adcef8..6a1f31c9 100644 --- a/src/hardware/conrad-digi-35-cpu/api.c +++ b/src/hardware/conrad-digi-35-cpu/api.c @@ -36,7 +36,7 @@ static const int32_t hwcaps[] = { SR_CONF_OUTPUT_VOLTAGE, SR_CONF_OUTPUT_CURRENT, /* There's no SR_CONF_OUTPUT_ENABLED; can't know/set status remotely. */ - SR_CONF_OVER_CURRENT_PROTECTION, + SR_CONF_OVER_CURRENT_PROTECTION_ENABLED, }; SR_PRIV struct sr_dev_driver conrad_digi_35_cpu_driver_info; @@ -151,7 +151,7 @@ static int config_set(int key, GVariant *data, const struct sr_dev_inst *sdi, ret = send_msg1(sdi, 'C', (int) (dblval * 100 + 0.5)); break; /* No SR_CONF_OUTPUT_ENABLED :-( . */ - case SR_CONF_OVER_CURRENT_PROTECTION: + case SR_CONF_OVER_CURRENT_PROTECTION_ENABLED: if (g_variant_get_boolean(data)) ret = send_msg1(sdi, 'V', 900); else /* Constant current mode */