Skip to content

Commit 1f634f9

Browse files
committed
fix(usb): remove extra first 0 from USB transfer data
1 parent 220999e commit 1f634f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/uhk-usb/src/uhk-hid-device.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ export class UhkHidDevice {
5454
const data = UhkHidDevice.convertBufferToIntArray(buffer);
5555
// if data start with 0 need to add additional leading zero because HID API remove it.
5656
// https://github.com/node-hid/node-hid/issues/187
57-
if (data.length > 0 && data[0] === 0 && process.platform === 'win32') {
58-
data.unshift(0);
59-
}
57+
// if (data.length > 0 && data[0] === 0 && process.platform === 'win32') {
58+
// data.unshift(0);
59+
// }
6060

6161
// From HID API documentation:
6262
// http://www.signal11.us/oss/hidapi/hidapi/doxygen/html/group__API.html#gad14ea48e440cf5066df87cc6488493af

0 commit comments

Comments
 (0)