Skip to content

Commit

Permalink
Fallback to ID_USB_* (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
avsdev-cw authored Jul 14, 2023
1 parent 7c89cde commit 41e8275
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/linux-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()]
}

Expand Down

0 comments on commit 41e8275

Please sign in to comment.