From 05f853b5c3b8d1666ad1adecf5321c61801bda5e Mon Sep 17 00:00:00 2001 From: Russ Dill Date: Mon, 30 Dec 2013 07:05:17 -0800 Subject: [PATCH] zeroplus: Add missing config_get for SR_CONF_CAPTURE_RATIO Without this, latest pulseview gets an assert and dies. Signed-off-by: Russ Dill --- hardware/zeroplus-logic-cube/api.c | 7 +++++++ 1 file changed, 7 insertions(+) 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; }