Skip to content

Commit c7b634b

Browse files
committed
resource: udev: also suggest ID_USB_INTERFACE_NUM - docu update
Signed-off-by: Joerg Hofrichter <joerg.hofrichter@ni.com>
1 parent ea1812b commit c7b634b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

doc/configuration.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,15 @@ This allows identification through hot-plugging or rebooting.
109109
USBSerialPort:
110110
match:
111111
ID_SERIAL_SHORT: 'P-00-00682'
112+
ID_USB_INTERFACE_NUM: '00'
112113
speed: 115200
113114
114-
The example would search for a USB serial converter with the key
115-
``ID_SERIAL_SHORT`` and the value ``P-00-00682`` and use it with a baud rate
116-
of ``115200``.
117-
The ``ID_SERIAL_SHORT`` property is set by the ``usb_id`` builtin helper program.
115+
The example would search for a USB serial converter with a given serial number
116+
(``ID_SERIAL_SHORT`` = ``P-00-00682``) and use first interface
117+
(``ID_USB_INTERFACE_NUM`` = ``00``) with a baud rate of 115200.
118+
119+
The ``ID_SERIAL_SHORT`` and ``ID_USB_INTERFACE_NUM`` properties are set by the
120+
``usb_id`` builtin helper program.
118121

119122
Arguments:
120123
- match (dict): key and value pairs for a udev match, see `udev Matching`_

0 commit comments

Comments
 (0)