From: Uwe Hermann Date: Fri, 25 Oct 2019 14:58:27 +0000 (+0200) Subject: mooshimeter-dmm: Only report successful scan upon working connection. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=59d916fe6789909cd9fa4ea636ea994eb0c4b404;p=libsigrok.git mooshimeter-dmm: Only report successful scan upon working connection. --- diff --git a/src/hardware/mooshimeter-dmm/api.c b/src/hardware/mooshimeter-dmm/api.c index 08199a68..b1b94068 100644 --- a/src/hardware/mooshimeter-dmm/api.c +++ b/src/hardware/mooshimeter-dmm/api.c @@ -115,6 +115,11 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options) if (ret < 0) goto err; + ret = sr_bt_connect_ble(desc); + if (ret < 0) + goto err; + sr_bt_disconnect(desc); + struct sr_dev_inst *sdi = g_malloc0(sizeof(struct sr_dev_inst)); struct dev_context *devc = g_malloc0(sizeof(struct dev_context));