mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 05:15:25 +03:00
don't repeat the same code
This commit is contained in:
parent
61fe3d6141
commit
d258cab005
1 changed files with 1 additions and 2 deletions
|
@ -23,8 +23,7 @@ var serial = {
|
||||||
disconnect: function(callback) {
|
disconnect: function(callback) {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
self.transmitting = false;
|
self.empty_output_buffer();
|
||||||
self.output_buffer = [];
|
|
||||||
|
|
||||||
chrome.serial.disconnect(this.connectionId, function(result) {
|
chrome.serial.disconnect(this.connectionId, function(result) {
|
||||||
if (result) {
|
if (result) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue