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:
parent
37a1c0d3e7
commit
e781e14617
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue