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

utilizing tab_switch_cleanup functionality

This commit is contained in:
cTn 2013-11-09 06:14:21 +01:00
parent 36604ca724
commit 0f23b5f5d9
4 changed files with 65 additions and 54 deletions

View file

@ -98,26 +98,6 @@ function send_slowly(out_arr, i, timeout_needle) {
}, timeout_needle * 5);
}
function leave_CLI(callback) {
var bufferOut = new ArrayBuffer(5);
var bufView = new Uint8Array(bufferOut);
bufView[0] = 0x65; // e
bufView[1] = 0x78; // x
bufView[2] = 0x69; // i
bufView[3] = 0x74; // t
bufView[4] = 0x0D; // enter
chrome.serial.write(connectionId, bufferOut, function(writeInfo) {
if (callback) {
callback();
}
});
CLI_active = false;
}
/* Some info about handling line feeds and carriage return
line feed = LF = \n = 0x0A = 10