From: Bert Vermeulen Date: Sun, 15 Jul 2012 02:07:51 +0000 (+0200) Subject: demo: scan/info_get fixes X-Git-Tag: dsupstream~800 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=7dfcf010a0331359529f52f7a09d6d324d96284f;p=libsigrok.git demo: scan/info_get fixes --- diff --git a/hardware/demo/demo.c b/hardware/demo/demo.c index f5e0f3ac..9c0e432d 100644 --- a/hardware/demo/demo.c +++ b/hardware/demo/demo.c @@ -162,6 +162,7 @@ static GSList *hw_scan(GSList *options) sr_err("demo: %s: sr_dev_inst_new failed", __func__); return 0; } + sdi->driver = ddi; devices = g_slist_append(devices, sdi); ddi->instances = g_slist_append(ddi->instances, sdi); @@ -218,6 +219,8 @@ static int hw_info_get(int info_id, const void **data, case SR_DI_PATTERNS: *data = &pattern_strings; break; + default: + return SR_ERR_ARG; } return SR_OK;