From: Bert Vermeulen Date: Sun, 15 Jul 2012 02:07:34 +0000 (+0200) Subject: chronovu-la8: scan/info_get fixes X-Git-Tag: dsupstream~801 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=cfe8a84dd7b5a22e6a225d6b078bde6d0ad8fde4;p=libsigrok.git chronovu-la8: scan/info_get fixes --- diff --git a/hardware/chronovu-la8/api.c b/hardware/chronovu-la8/api.c index e1f32aca..09daa6cb 100644 --- a/hardware/chronovu-la8/api.c +++ b/hardware/chronovu-la8/api.c @@ -141,7 +141,7 @@ static GSList *hw_scan(GSList *options) sr_err("la8: %s: sr_dev_inst_new failed", __func__); goto err_close_ftdic; } - + sdi->driver = cdi; sdi->priv = ctx; devices = g_slist_append(devices, sdi); @@ -305,6 +305,8 @@ static int hw_info_get(int info_id, const void **data, } else return SR_ERR; break; + default: + return SR_ERR_ARG; } return SR_OK;