mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +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) {
|
||||
var self = this;
|
||||
|
||||
self.transmitting = false;
|
||||
self.output_buffer = [];
|
||||
self.empty_output_buffer();
|
||||
|
||||
chrome.serial.disconnect(this.connectionId, function(result) {
|
||||
if (result) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue