Add comment regarding the commented out workaround for node-hid issue 187.

This commit is contained in:
László Monda
2017-09-06 21:37:46 +02:00
parent d8bf6a70ac
commit d7e820bc1f

View File

@@ -87,7 +87,7 @@ function getTransferData(buffer) {
// if data start with 0 need to add additional leading zero because HID API remove it.
// https://github.com/node-hid/node-hid/issues/187
if (data.length > 0 && data[0] === 0) {
// data.unshift(0)
// data.unshift(0) // TODO: This has been commented out because it causes bugs on Linux and Mac. Gotta test it on Windows and fully remove it if possible.
}
// From HID API documentation: