1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +03:00

adding some notes

This commit is contained in:
cTn 2013-04-09 03:53:39 +02:00
parent c7f88dcdc4
commit b064b11740

View file

@ -258,7 +258,7 @@ function onCharRead(readInfo) {
}
function send_message(code, data, bytes_n) {
if (typeof data === 'array') { // array portion of this code is untested
if (typeof data === 'array') { // array portion of this code is untested TODO: test ?
var size = 6 + data.length;
var checksum = 0;
@ -293,7 +293,8 @@ function send_message(code, data, bytes_n) {
}
chrome.serial.write(connectionId, bufferOut, function(writeInfo) {
console.log("Wrote: " + writeInfo.bytesWritten + " bytes");
// used for debugging purposes (should be disabled in "stable" buildsS
// console.log("Wrote: " + writeInfo.bytesWritten + " bytes");
});
}