node-elgato-stream-deck
node-elgato-stream-deck copied to clipboard
MacOS: listStreamDecks contains duplicates
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
},