Skip to content

Commit

Permalink
fix bug of rxdata being one too long
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-8 committed Dec 21, 2024
1 parent 5f6422b commit 1ba2418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/ds/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -1363,7 +1363,7 @@ function connect() {
var rxByteArray = new Uint8Array(data);
var newrxdata = new Float32Array(rxByteArray.buffer);
rxdata = [];
for (var i = 1; i <= newrxdata.length; i++) { // websocketcomms.h adds an extra number to the front of the array so that the array is never empty
for (var i = 1; i < newrxdata.length; i++) { // websocketcomms.h adds an extra number to the front of the array so that the array is never empty
rxdata[i - 1] = newrxdata[i];
}

Expand Down

0 comments on commit 1ba2418

Please sign in to comment.