Skip to content

Commit

Permalink
Merge pull request #514 from analogdevicesinc/dnechita-fix-usb-compil…
Browse files Browse the repository at this point in the history
…e-err

usb: Fix compile error caused by unkown indentifier (interface)
  • Loading branch information
rgetz authored May 22, 2020
2 parents b62e83a + 6d66318 commit ab9a0e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ static int usb_populate_context_attrs(struct iio_context *ctx,

iio_snprintf(uri, sizeof(uri), "usb:%d.%d.%u",
libusb_get_bus_number(dev), libusb_get_device_address(dev),
(uint8_t)ctx->pdata->interface);
(uint8_t)ctx->pdata->intrfc);
ret = iio_context_add_attr(ctx, "uri", uri);
if (ret < 0)
return ret;
Expand Down

0 comments on commit ab9a0e7

Please sign in to comment.