X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fscpi-pps%2Fapi.c;h=f97b07109eae6ffb66e105d764979620934b6bff;hb=53012da658ae94b245240c8a3e115723eede4c7d;hp=5a847eb2257c81e342701589f57446f13e414543;hpb=105df67463b84683a35f3474eccc871e5aa4ed0e;p=libsigrok.git diff --git a/src/hardware/scpi-pps/api.c b/src/hardware/scpi-pps/api.c index 5a847eb2..f97b0710 100644 --- a/src/hardware/scpi-pps/api.c +++ b/src/hardware/scpi-pps/api.c @@ -524,8 +524,8 @@ static int config_list(uint32_t key, GVariant **data, const struct sr_dev_inst * case SR_CONF_SCAN_OPTIONS: case SR_CONF_DEVICE_OPTIONS: return std_opts_config_list(key, data, sdi, cg, - scanopts, ARRAY_SIZE(scanopts), - drvopts, ARRAY_SIZE(drvopts), + ARRAY_AND_SIZE(scanopts), + ARRAY_AND_SIZE(drvopts), (devc) ? devc->device->devopts : NULL, (devc) ? devc->device->num_devopts : 0); break;