1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-20 23:05:15 +03:00

fix for undefined function

ArrayBuffer does NOT have length but byteLength parameter.
This commit is contained in:
Mauro Mombelli 2015-04-28 10:20:48 +02:00
parent 37a1c0d3e7
commit e781e14617

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();
}
});