Skip to content

Commit

Permalink
usb: Fix compile error caused by unkown indentifier (interface)
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Nechita <[email protected]>
  • Loading branch information
dNechita committed May 22, 2020
1 parent b62e83a commit 70703aa
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 70703aa

Please sign in to comment.