MadLittleMods / node-usb-detection

List USB devices in system and detect changes on them.
MIT License
371 stars 114 forks source link

feat: [linux] expose devnum and busnum #149

Closed efuturetoday closed 2 years ago

efuturetoday commented 3 years ago

Hello,

this commit exposes the devnum and busnum to the library. I use this to get the path for the device on ubuntu for udev.

Before this change the device.deviceAddress and device.locationId were set to zero.


Related to https://github.com/MadLittleMods/node-usb-detection/issues/8 and https://github.com/MadLittleMods/node-usb-detection/issues/51

MadLittleMods commented 2 years ago

Thanks for the contribution @efuturetoday 🙂 Sorry for the delay 🙇