node-elgato-stream-deck icon indicating copy to clipboard operation
node-elgato-stream-deck copied to clipboard

MacOS: listStreamDecks contains duplicates

Open natcl opened this issue 2 years ago • 0 comments

On MacOS it seems that listStreamDecks returns some duplicates. This may be a node-hid issue as this is the output I get from node-hid (See bellow)

Perhaps the library should filter by serial number to avoid duplicates ?

> HID.devices()
[
  {
    vendorId: 4057,
    productId: 96,
    path: 'IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/XHC1@14/XHC1@14000000/HS07@14500000/IOUSBHostDevice@14500000/AppleUSB20Hub@14500000/AppleUSB20HubPort@14520000/USB 2.0 Hub@14520000/AppleUSB20Hub@14520000/AppleUSB20HubPort@14524000/Stream Deck@14524000/IOUSBHostInterface@0/AppleUserUSBHostHIDDevice',
    serialNumber: 'AL50H1C13698',
    manufacturer: 'Elgato Systems',
    product: 'Stream Deck',
    release: 256,
    interface: 0,
    usagePage: 12,
    usage: 1
  },
  {
    vendorId: 4057,
    productId: 96,
    path: 'IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/XHC1@14/XHC1@14000000/HS07@14500000/IOUSBHostDevice@14500000/AppleUSB20Hub@14500000/AppleUSB20HubPort@14520000/USB 2.0 Hub@14520000/AppleUSB20Hub@14520000/AppleUSB20HubPort@14524000/Stream Deck@14524000/IOUSBHostInterface@0/AppleUserUSBHostHIDDevice',
    serialNumber: 'AL50H1C13698',
    manufacturer: 'Elgato Systems',
    product: 'Stream Deck',
    release: 256,
    interface: 0,
    usagePage: 9,
    usage: 65280
  },

natcl avatar Dec 17 '21 16:12 natcl