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:
parent
e907531114
commit
476a04fda3
1 changed files with 3 additions and 0 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue