From e781e14617b037cf5b4517031a365e9523ec8ca7 Mon Sep 17 00:00:00 2001 From: Mauro Mombelli Date: Tue, 28 Apr 2015 10:20:48 +0200 Subject: [PATCH] fix for undefined function ArrayBuffer does NOT have length but byteLength parameter. --- js/msp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/msp.js b/js/msp.js index ebb869c3..00a2b68b 100644 --- a/js/msp.js +++ b/js/msp.js @@ -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(); } });