Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Update vid/pid check in usbDetect.find(...) to check for function callback #74

Merged
merged 6 commits into from
May 9, 2019

Conversation

erikkallen
Copy link
Contributor

Fixes #33 by checking if vid or pid are functions, currently if only vid and pid are given the pid is made into a callback.

Fixes MadLittleMods#33 by checking if vid or pid are functions
@MadLittleMods MadLittleMods self-requested a review March 4, 2019 22:14
@MadLittleMods
Copy link
Owner

Sorry for the delay @erikkallen. Do you still have some interest/time in finishing this up?

@MadLittleMods
Copy link
Owner

Thanks for the updates @erikkallen!

We can merge now if you don't want to touch it again. Just thought of a way to make the tests more hands-free, #74 (comment)

@MadLittleMods MadLittleMods merged commit 603eb8b into MadLittleMods:master May 9, 2019
@MadLittleMods MadLittleMods changed the title Update vid/pid check to check for function Update vid/pid check in usbDetect.find(...) to check for function callback May 9, 2019
MadLittleMods added a commit that referenced this pull request May 9, 2019
@MadLittleMods
Copy link
Owner

Thanks for the follow-up @erikkallen ❤️ Sorry again for the delay (just give me a friendly ping if you want some more emphasis in the future).

This is now shipped in usb-detection@4.2.0. I will npm publish in the morning after the prebuilds are finished,

@erikkallen
Copy link
Contributor Author

Thank you for merging and no worries about the delay, we are all busy people :) thanks again for the awesome package!

@MadLittleMods
Copy link
Owner

Published to npm 🎉 https://www.npmjs.com/package/usb-detection

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

usbDetect.find(...) callback with vid and pid throws errors
2 participants