]> sigrok.org Git - libsigrok.git/commitdiff
zeroplus: Add missing config_get for SR_CONF_CAPTURE_RATIO
authorRuss Dill <redacted>
Mon, 30 Dec 2013 15:05:17 +0000 (07:05 -0800)
committerBert Vermeulen <redacted>
Fri, 3 Jan 2014 14:09:10 +0000 (15:09 +0100)
Without this, latest pulseview gets an assert and dies.

Signed-off-by: Russ Dill <redacted>
hardware/zeroplus-logic-cube/api.c

index 0f44f1b0e15965a4cf12f8ee2e46fa1cd7751366..f865a1abb54b5e4849abe5f930c0f54a6e98a006 100644 (file)
@@ -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;
        }