1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 21:05:35 +03:00

cleanup on disconnect

This commit is contained in:
cTn 2014-01-26 20:14:21 +01:00
parent e907531114
commit 476a04fda3

View file

@ -23,6 +23,9 @@ var serial = {
disconnect: function(callback) {
var self = this;
self.transmitting = false;
self.output_buffer = [];
chrome.serial.disconnect(this.connectionId, function(result) {
if (result) {
console.log('SERIAL: Connection with ID: ' + self.connectionId + ' closed');