gary-rowe / hid4java

A cross-platform Java Native Access (JNA) wrapper for the libusb/hidapi library. Works out of the box on Windows/Mac/Linux.
MIT License
229 stars 71 forks source link

Limit access to only those devices contained in the device map #7

Closed gary-rowe closed 9 years ago

gary-rowe commented 9 years ago

@jbliesener has pointed out that it is inconsistent for a device to be obtained directly through HidServices.getDevice() when it has not appeared in the attached devices map maintained by HidDeviceManager.

gary-rowe commented 9 years ago

Covered in #6 with a little tidying up.

Ready for review and close.

gary-rowe commented 9 years ago

Incorporated the suggested fixes and seen to be working.