Merge pull request #174 from MauroMombelli/patch-3

fix for undefined function
10.3.x-maintenance
Dominic Clifton 2015-05-07 19:08:53 +01:00
commit 726c895c0a
1 changed files with 1 additions and 1 deletions

View File

@ -868,7 +868,7 @@ var MSP = {
// always send messages with data payload (even when there is a message already in the queue)
if (data || !requestExists) {
serial.send(bufferOut, function (sendInfo) {
if (sendInfo.bytesSent == bufferOut.length) {
if (sendInfo.bytesSent == bufferOut.byteLength) {
if (callback_sent) callback_sent();
}
});