From 41e8275aaa0f2dec0180838b06b33de5563895cc Mon Sep 17 00:00:00 2001 From: avsdev-cw Date: Fri, 14 Jul 2023 18:05:48 +0100 Subject: [PATCH] Fallback to ID_USB_* (#116) --- lib/linux-list.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/linux-list.ts b/lib/linux-list.ts index 4d3d020..3d3c980 100644 --- a/lib/linux-list.ts +++ b/lib/linux-list.ts @@ -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()] }