]> sigrok.org Git - libsigrok.git/commitdiff
chronovu-la8: scan/info_get fixes
authorBert Vermeulen <redacted>
Sun, 15 Jul 2012 02:07:34 +0000 (04:07 +0200)
committerBert Vermeulen <redacted>
Fri, 3 Aug 2012 08:27:39 +0000 (10:27 +0200)
hardware/chronovu-la8/api.c

index e1f32acafd0ed5911e4260672c43da854001cc89..09daa6cb9eb9fc80800b06705cf258eb643d4f03 100644 (file)
@@ -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;