Merge pull request #77 from chiragnagpal/master

Update README.md
This commit is contained in:
mike w 2014-09-01 09:52:47 -07:00
commit 64652c1971
1 changed files with 2 additions and 2 deletions

View File

@ -94,8 +94,8 @@ To use your own set of rules, create and use a custom prober:
// Probe for our custom CDC devices, which use VID 0x1234
// and PIDS 0x0001 and 0x0002.
ProbeTable customTable = new ProbeTable();
probeTable.addProduct(0x1234, 0x0001, CdcAcmSerialDriver.class);
probeTable.addProduct(0x1234, 0x0002, CdcAcmSerialDriver.class);
customTable.addProduct(0x1234, 0x0001, CdcAcmSerialDriver.class);
customTable.addProduct(0x1234, 0x0002, CdcAcmSerialDriver.class);
UsbSerialProber prober = new UsbSerialProber(customTable);
List<UsbSerialDriver> drivers = prober.findAllDrivers(usbManager);