mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-25 18:37:19 +00:00
Fallback to ID_USB_* (#116)
This commit is contained in:
parent
7c89cde862
commit
41e8275aaa
1 changed files with 9 additions and 0 deletions
|
|
@ -15,6 +15,15 @@ function propName(name: string) {
|
|||
ID_VENDOR_ID: 'vendorId',
|
||||
ID_MODEL_ID: 'productId',
|
||||
DEVLINKS: 'pnpId',
|
||||
/**
|
||||
* Workaround for systemd defect
|
||||
* see https://github.com/serialport/bindings-cpp/issues/115
|
||||
*/
|
||||
ID_USB_VENDOR_ENC: 'manufacturer',
|
||||
ID_USB_SERIAL_SHORT: 'serialNumber',
|
||||
ID_USB_VENDOR_ID: 'vendorId',
|
||||
ID_USB_MODEL_ID: 'productId',
|
||||
// End of workaround
|
||||
}[name.toUpperCase()]
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue