Comparing version 0.3.5 to 0.3.7
@@ -22,3 +22,3 @@ { | ||
], | ||
"version": "0.3.5", | ||
"version": "0.3.7", | ||
"optionalDependencies": { | ||
@@ -25,0 +25,0 @@ "usb-shyp-win32-x64": "0.3.x", |
USB Library for Node.JS | ||
=============================== | ||
**POSIX:** [![Build Status](https://travis-ci.org/nonolith/node-usb.svg?branch=tcr-usb)](https://travis-ci.org/nonolith/node-usb) **Windows:** [![Build status](https://ci.appveyor.com/api/projects/status/1q64jnnfseidkjwl)](https://ci.appveyor.com/project/tcr/node-usb) | ||
Node.JS library for communicating with USB devices in JavaScript / CoffeeScript. | ||
@@ -5,0 +7,0 @@ |
@@ -291,2 +291,10 @@ var usb = exports = module.exports = require("bindings-shyp")("usb_bindings") | ||
OutEndpoint.prototype.transferWithZLP = function (buf, cb) { | ||
if (buf.length % this.descriptor.wMaxPacketSize == 0) { | ||
this.transfer(buf); | ||
this.transfer(new Buffer(0), cb); | ||
} else { | ||
this.transfer(buf, cb); | ||
} | ||
} | ||
@@ -293,0 +301,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
295
60660
16
292