Skip to content

Commit f7567fb

Browse files
committed
Maximum string descriptor length is 255. Fixes node-usb#65
1 parent ecc4165 commit f7567fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

usb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ function(bmRequestType, bRequest, wValue, wIndex, data_or_length, callback){
112112

113113
usb.Device.prototype.getStringDescriptor = function (desc_index, callback) {
114114
var langid = 0x0409;
115-
var length = 1024;
115+
var length = 255;
116116
this.controlTransfer(
117117
usb.LIBUSB_ENDPOINT_IN,
118118
usb.LIBUSB_REQUEST_GET_DESCRIPTOR,

0 commit comments

Comments
 (0)