Skip to content

Commit 90b6e92

Browse files
committed
usb uri: add shorthand to the doc
Signed-off-by: Robin Getz <robin.getz@analog.com>
1 parent c1ad912 commit 90b6e92

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

iio.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,10 @@ __api __check_ret struct iio_context * iio_create_network_context(const char *ho
413413
* when library is compiled with ZeroConf support. For example
414414
* <i>"ip:192.168.2.1"</i>, <b>or</b> <i>"ip:localhost"</i>, <b>or</b> <i>"ip:"</i>
415415
* <b>or</b> <i>"ip:plutosdr.local"</i>
416-
* - USB backend, "usb:"\n Requires bus, address, and interface parts separated
417-
* with a dot. For example <i>"usb:3.32.5"</i>
416+
* - USB backend, "usb:"\n When more than one usb device is attached, requires
417+
* bus, address, and interface parts separated with a dot. For example
418+
* <i>"usb:3.32.5"</i>. Where there is only one USB device attached, the shorthand
419+
* <i>"usb:"</i> can be used.
418420
* - Serial backend, "serial:"\n Requires:
419421
* - a port (/dev/ttyUSB0),
420422
* - baud_rate (default <b>115200</b>)

0 commit comments

Comments
 (0)