From: Russ Dill Date: Mon, 30 Dec 2013 15:05:17 +0000 (-0800) Subject: zeroplus: Add missing config_get for SR_CONF_CAPTURE_RATIO X-Git-Tag: libsigrok-0.3.0~346 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=05f853b5c3b8d1666ad1adecf5321c61801bda5e;p=libsigrok.git zeroplus: Add missing config_get for SR_CONF_CAPTURE_RATIO Without this, latest pulseview gets an assert and dies. Signed-off-by: Russ Dill --- diff --git a/hardware/zeroplus-logic-cube/api.c b/hardware/zeroplus-logic-cube/api.c index 0f44f1b0..f865a1ab 100644 --- a/hardware/zeroplus-logic-cube/api.c +++ b/hardware/zeroplus-logic-cube/api.c @@ -484,6 +484,13 @@ static int config_get(int id, GVariant **data, const struct sr_dev_inst *sdi, } else return SR_ERR; break; + case SR_CONF_CAPTURE_RATIO: + if (sdi) { + devc = sdi->priv; + *data = g_variant_new_uint64(devc->capture_ratio); + } else + return SR_ERR; + break; default: return SR_ERR_NA; }