Closed dschweinbenz closed 1 year ago
Latest commit: a58cc9b4a3fe33e892d788085cfce6f2e432032a
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Cool! Thanks for your contribution! Could you add some tests for the code?
Added getDeviceBySerial function which is necessary if multiple printers of the same manufacturer and model are present.
Outsourced isPrinter function for reusability. When listening on usb.on('attach', () => {}) it is useful to be able to reuse the isPrinter() function.