Attempting to use a Gen 2 device on Windows 10, I encountered this error.
It seems that instead of write, sendFeatureReport must be used, and the payload array must be zero padded to 8 elements (presumably there is a difference in how the underlying lib handles this on Linux).
As a workaround, something like the following can be used:
var buildLight = new DelcomIndicator();
buildLight.deviceConnection.write = input => {
while(input.length < 8) {
input.push(0);
}
buildLight.deviceConnection.sendFeatureReport(input);
};```
Attempting to use a Gen 2 device on Windows 10, I encountered this error.
It seems that instead of
write
,sendFeatureReport
must be used, and the payload array must be zero padded to 8 elements (presumably there is a difference in how the underlying lib handles this on Linux).As a workaround, something like the following can be used: