continue;
if (!scan_firmware(devlist[i])) {
+ const char *fwname;
sr_info("Found a Logic Pro 16 device (no firmware loaded).");
+ fwname = "saleae-logicpro16-fx3.fw";
if (upload_firmware(drvc->sr_ctx, devlist[i],
- "saleae-logicpro16-fx3.fw") != SR_OK) {
- sr_err("Firmware upload failed.");
+ fwname) != SR_OK) {
+ sr_err("Firmware upload failed, name %s.", fwname);
continue;
};
fw_loaded = TRUE;
if (des.idVendor != 0x21a9 || des.idProduct != 0x1006)
continue;
- usb_get_port_path(devlist[i], connection_id, sizeof(connection_id));
+ if (usb_get_port_path(devlist[i], connection_id, sizeof(connection_id)) < 0)
+ continue;
sdi = g_malloc0(sizeof(struct sr_dev_inst));
sdi->status = SR_ST_INITIALIZING;
}
static int config_get(uint32_t key, GVariant **data,
- const struct sr_dev_inst *sdi, const struct sr_channel_group *cg)
+ const struct sr_dev_inst *sdi, const struct sr_channel_group *cg)
{
struct sr_usb_dev_inst *usb;
struct dev_context *devc;
}
static int config_set(uint32_t key, GVariant *data,
- const struct sr_dev_inst *sdi, const struct sr_channel_group *cg)
+ const struct sr_dev_inst *sdi, const struct sr_channel_group *cg)
{
struct dev_context *devc;
}
static int config_list(uint32_t key, GVariant **data,
- const struct sr_dev_inst *sdi, const struct sr_channel_group *cg)
+ const struct sr_dev_inst *sdi, const struct sr_channel_group *cg)
{
switch (key) {
case SR_CONF_SCAN_OPTIONS: